PDF Preview:
PDF Title : | Python Graphics |
---|---|
Total Page : | 365 Pages |
Author: | B. J. Korites |
PDF Size : | 6.2 MB |
Language : | English |
Rights : | apress.com |
PDF Link : | Available |
Summary
Here on this page, we have provided the latest download link for Python Graphics : a reference for creating 2D and 3D images PDF. Please feel free to download it on your computer/mobile. For further reference, you can go to apress.com
Python Graphics : a reference for creating 2D and 3D images – Book
To carry out the shading in Listing 7-2, you will space the longitudes and latitudes closer together, two degrees apart, and adjust their plotting intensity depending on the angle between a local unit vector normal to the surface nˆ and the light source unit vector ˆ l at each point on the surface. This will then be used to control the relative r,g,b contributions to the color mix. As before, you establish this relation by taking the dot product ˆ ˆ n l× . nˆ at each point is determined quite simply by obtaining a vector from the sphere’s center to the point in question on the sphere’s surface and then dividing by the sphere’s radius, rs.
Python Graphics : a reference for creating 2D and 3D images PDF
Know more about our initiative
[yasr_visitor_votes size=”medium”]