Rotate, wobble!, sort and draw. # KEYBOARD CONTROLS: Press 'Q' to toggle wobble freeze Press 'W' to toggle wobble mode Press 'F' to toggle only surface balls Press 'E' to toggle only edge balls Press 'C' to toggle only core balls Press 'N' to toggle only corner balls Press 'B' to toggle ball mode Press '1' '2' '3' or '4' to choose color scheme: ''1' = FIRE, '2' = ICE, '3' = TOXIC & '4' = SMOKE Press 'O' to toggle color mode Press 'M' to toggle rotation mode - auto/mouse Press 'I' to toggle invert z-order Press 'T' to toggle pen opacity Press 'R' to toggle rectangle filler mode
Added rectangle filler mode using "Quite Fast Squares" from @griffpatch_tutor - thanks! Inspired after seeing "Vibrating Jelly" by @SBissay - thanks! The 'wobble' is created using the sine-function over each balls neighboring axis positions; x-wobble uses y-position and z-position y-wobble uses z-position and x-position z-wobble uses x-position and y-position Scratch: 512 Balls Sulfurous and Phosphorus: 4096 Balls Credits to @TheLogFather for the run-time detecting logic. Thanks to @Zro716 for speedier sorting algorithm.