Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions

Tonyforster (talk | contribs)
Tonyforster (talk | contribs)
Line 488: Line 488:


== Capturing with the camera ==
== Capturing with the camera ==
As of TurtleBlocksV106, the following section has been superceded. The Show Camera blocks [[File:Show camera.jpg]] now have the function of the Python code and Show Media blocks [[File:Python show media.jpg]] described below.
As of version 106 there are blocks to capture an image from the camera, the average brightness and the rgb colours pushed to the heap [[File:Camera blocks.jpg]]
 
The camera could be used for time lapse photography, motion sensing, light level measuring, colour sensing and more.
 
===More===
As of TurtleBlocksV106, the following 2 sections have been partly superceded. The Show Camera blocks [[File:Show camera.jpg]] now have the function of the Python code and Show Media blocks [[File:Python show media.jpg]] described below.




Line 522: Line 527:




The camera could be used for time lapse photography, motion sensing, light level measuring, colour sensing and more. Here is an example where you can take a photo and apply colour effects. (Note, 'pen color' is not the same as 'turtle sees'; if you want the actual RGB value of a pixel, use the 'read pixel' block. There is also sample Python code available for setting the RGB value of a pixel.)
===Colour effects===
Here is an example where you can take a photo and apply colour effects. (Note, 'pen color' is not the same as 'turtle sees'; if you want the actual RGB value of a pixel, use the 'read pixel' block. There is also sample Python code available for setting the RGB value of a pixel.)


[[File:Colour processing.jpg]]
[[File:Colour processing.jpg]]