Python 2.6 Graphics Cookbook

Medizin, Wissenschaft & Technik

1 Bewertung
4.0

+ Buch merken

Lies dieses und 200.000 weitere Bücher mit der eBook-Flatrate von Skoobe. Ab 11,99 € im Monat.

Buchbeschreibung zu „Python 2.6 Graphics Cookbook“

In Detail

Python is a great object-oriented and interactive programming language that lets you develop graphics, both static and animated, using built-in vector graphics functions that are provided with Python.

Python 2.6 Graphics Cookbook is a collection of straightforward recipes and illustrative screenshots for creating and animating graphic objects using the Python language. This book makes the process of developing graphics interesting and entertaining by working in a graphic workspace without the burden of mastering complicated language definitions and opaque examples.

If you choose to work through all the recipes from the beginning, you will learn to install Python and create basic programs for making lines and shapes using the built-in Tkinter module. The confusing topic of color manipulation is explored in detail using existing Python tools as well as some new tools in the recipes. Next you will learn to manipulate font size, color, and placement of text as placing text exactly where you want on a screen can be tricky because font height, inter-character spacing, and text window dimensions all interfere with each other. Then you will learn how to animate graphics, for example having more than one independent graphic object co-exist and interact using various Python methods.

You will also learn how you can work with raster images, such as converting their formats using the Python Imaging Library. Next you will learn how you can combine vector images with raster images so that you can animate the raster images with ease. You will also walk through a set of recipes with the help of which you can handle and manipulate blocks of raw data that may be hundreds of megabytes in size using datastreams, files, and hard drives. You will also learn how you can use Inkscape to dismantle existing images and use parts of them for your own graphics and Python programs. At the end of the book you will learn how you can create GUIs for different purposes.

A quick reference for creating interesting graphic animations using Python programming

Approach

This book has recipes that show enthusiastic users how easy graphic programming can be. Simple explanations in plain English are used. The recipes are built up, in each chapter, starting as simply as possible and moving to more complex programs with which you can comfortably create 2D vector graphics and animations. You will learn how to combine both vector and photo images seamlessly!

Who this book is for

If you are looking to create animated graphics to represent real-world scenarios then this book is for you. Teachers, scholars, students, and engineers who know it is possible to make fascinating models and demonstrations but have not found a handbook that pulls it all together in one place will find what they need in this recipe bank.

Basic knowledge of Python programming is required and access to the Web and Google will be useful.

Über Mike Ohlson de Fine

Mike is a graduate Electrical Engineer specializing in industrial process measurement and control. He has a Diploma in Electronics and Instrumentation from Technikon Witwatersrand, an Electrical Engineering degree from the University of Cape Town, and a Masters in Automatic Control from Rand Afrikaans University. He has worked for mining and mineral extraction companies for the last 30 years. His first encounter with computers was learning Fortran 4 using punched cards on an IBM 360 as an undergraduate. Since then he has experimented with Pascal, Forth, Intel 8080 Assembler, MS Basic, C, and C++ but was never satisfied with any of these. Always restricted by corporate control of computing activities he encountered Linux in 2006 and Python in 2007 and became free at last. As a working engineer he needs tools that facilitate the understanding and solution of industrial process control problems using simulations and computer models of real processes. Linux and Python proved to be excellent tools for these challenges. When he retires he would like to be part of setting up a Free and Open Source engineering virtual workshop for his countrymen and people in other poor countries to enable the bright youngsters of these countries to be intellectually free at last. His hobbies are writing computer simulations, paddling kayaks in wild water, and surf skiing in the sea.


Verlag:

Packt Publishing

Veröffentlicht:

2010

Druckseiten:

ca. 242


1 Kommentar zu „Python 2.6 Graphics Cookbook“

– 06.08.2017

an introduction to Tkinter based on examples

Ähnliche Bücher wie „Python 2.6 Graphics Cookbook“

Lies was, wieviel und wo immer Du möchtest!

Jetzt kostenlos testen
Netzsieger testet Skoobe