Watch the following video and try to take snapshot of your favorite color. It’s fun game. Enjoy.
This animation has been created in processing js with python environment. The code is given below.
x = 600 y = x def setup(): size(x, y) background(0) smooth() noStroke() # Create the font printArray(PFont.list()) f = createFont("Georgia", 30) textFont(f) fill(255) textAlign(CENTER) text("Can you take a snapshot of \nyour favourite color on the top?", x*0.5, 30) def draw(): if (frameCount % 10 == 0): r = frameCount * 3 % 255 g = frameCount * 5 % 255 b = frameCount * 7 % 255 fill(r, g, b) pushMatrix() translate(x/2, y/2+25) rotate(radians(frameCount * 2 % 360)) ellipse(0, 0, x*0.8-20*cos(frameCount), x/10-20*cos(frameCount)) popMatrix() saveFrame("frames//filename-####.jpeg") if frameCount == 1000: noLoop()
The above code creates a number of images. Those images have been compiled in blender VSE to create the video.
Hope this is interesting.
Enjoy.