Warning: Undefined variable $skin in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 405

Warning: Undefined variable $src_attribute in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 410

Warning: Undefined variable $type_attribute in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 410

Warning: Undefined variable $poster_attribute in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 410

Warning: Undefined variable $autoplay_attribute in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 410

Warning: Undefined variable $mp3_source in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 412

Warning: Undefined variable $webm_source in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 413

Warning: Undefined variable $flv_source in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 414

Warning: Undefined variable $wmv_source in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 415

Warning: Undefined variable $ogg_source in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 416

Warning: Undefined variable $captions_source in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 417

Warning: Undefined variable $loop_option in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 423

Warning: Undefined variable $mediahtml in /home/rowanpet/public_html/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 425

Making my way through the Drawing 3D primitives recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned how:

  • the box function can be used with one or three parameters to set different values for depth, width and height of the box.
  • the sphereDetail function can be used to define a resolution higher or lower than the default sphere function
  • to create a variable (angleY) that can rotate each 3D object around its Y-axis.
  • the frameCount system variable can be used to rotate each 3D object by one degree per frame as the value of the variable is increased by one in each frame. This value is converted to radians, cause that’s the unit of measurement Processing uses. Might be easier to work with radians rather than convert to degrees all of the time. Maybe.

Screen-Shot-2014-03-31-at-8.28.44-PM

Leave a Comment

Your email address will not be published. Required fields are marked *