ScratchData LogoScratchData
Back to lemuel-a's profile

P5.js example

LElemuel-a•Created June 17, 2024
P5.js example
0
0
1 views
View on Scratch

Instructions

Copy and paste the text on a p5.js playground

Description

The code --> function setup() { createCanvas(windowWidth, windowHeight, WEBGL); } function draw() { background(250); rotateY(frameCount * 0.01); for (let j = 0; j < 5; j++) { push(); for (let i = 0; i < 80; i++) { translate( sin(frameCount * 0.001 + j) * 100, sin(frameCount * 0.001 + j) * 100, i * 0.1 ); rotateZ(frameCount * 0.002); push(); sphere(15, 6, 4); pop(); } pop(); } }

Project Details

Project ID1038706836
CreatedJune 17, 2024
Last ModifiedJune 17, 2024
SharedJune 17, 2024
Visibilityvisible
CommentsAllowed