Python Playground: Geeky Projects for the Curious Programmer

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

«Python Playground» представляет собой сборник творческих программных проектов, которые будут вдохновлять вас использовать Python, чтобы делать искусство и музыку, создавать симуляции реальных явлений, а также взаимодействовать с аппаратными средствами, как Arduino и Raspberry Pi.
Python is a powerful programming language thats easy to learn and fun to play with. But once youve gotten a handle on the basics, what do you do next?
Python Playground is a collection of imaginative programming projects that will inspire you to use Python to make art and music, build simulations of real-world phenomena, and interact with hardware like the Arduino and Raspberry Pi. Youll learn to use common Python tools and libraries like numpy, matplotlib, and pygame to do things like:
- Generate Spirograph-like patterns using parametric equations and the turtle module
- Create music on your computer by simulating frequency overtones
- Translate graphical images into ASCII art
- Write an autostereogram program that produces 3D images hidden beneath random patterns
- Make realistic animations with OpenGL shaders by exploring particle systems, transparency, and billboarding techniques
- Construct 3D visualizations using data from CT and MRI scans
- Build a laser show that responds to music by hooking up your computer to an Arduino
Programming shouldnt be a chore. Have some solid, geeky fun with Python Playground.

Author(s): Mahesh Venkitachalam
Publisher: No Starch Press
Year: 2015

Language: English
Pages: 353
Tags: Библиотека;Компьютерная литература;Python;

Part 1: Warming Up

Chapter 1: Parsing iTunes Playlists
Chapter 2: Spirographs

Part 2: Simulating Life

Chapter 3: Conway’s Game of Life
Chapter 4: Generating Musical Overtones with the Karplus-Strong Algorithm
Chapter 5: Boids: Simulating a Flock

Part 3: Fun with Images

Chapter 6: ASCII Art
Chapter 7: Photomosaics
Chapter 8: Autostereograms

Part 4: Enter 3D

Chapter 9: Understanding OpenGL
Chapter 10: Particle Systems
Chapter 11: Volume Rendering

Part 5: Hardware Hacking

Chapter 12: Introduction to Arduino
Chapter 13: Laser Audio Display
Chapter 14: A Raspberry Pi–based Weather Monitor

Appendix A: Software Installation
Appendix B: Basic Practical Electronics
Appendix C: Raspberry Pi Tips & Tricks