MCPcopy Index your code
hub / github.com/processing/p5.js / draw

Function draw

preview/global/sketch.js:99–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99function draw(){
100 originalImage.begin();
101 background(0);
102 orbitControl();
103
104 push()
105 strokeWeight(2)
106 stroke(255,0,0)
107 rotateX(PI/2 + millis() * 0.0005);
108 fill(255,100, 150)
109 strokeShader(starStrokeShader)
110 shader(starShader);
111 model(stars, 1000);
112 pop()
113
114 push()
115 shader(fresnelShader)
116 noStroke()
117 sphere(90);
118 filter(pixelateShader);
119 pop()
120
121 originalImage.end();
122
123 imageMode(CENTER)
124 image(originalImage, 0, 0)
125
126 filter(BLUR, 15)
127 filter(bloomShader);
128}

Callers

nothing calls this directly

Calls 4

shaderFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
imageFunction · 0.50

Tested by

no test coverage detected