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

Function draw

test/types/strands.ts:111–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109}
110
111function draw(){
112 originalImage.begin();
113 background(0);
114 orbitControl();
115
116 push()
117 strokeWeight(2)
118 stroke(255,0,0)
119 rotateX(PI/2 + millis() * 0.0005);
120 fill(255,100, 150)
121 strokeShader(starStrokeShader)
122 shader(starShader);
123 model(stars, 1000);
124 pop()
125
126 push()
127 shader(fresnelShader)
128 noStroke()
129 sphere(90);
130 filter(pixelateShader);
131 pop()
132
133 originalImage.end();
134
135 imageMode(CENTER)
136 image(originalImage, 0, 0)
137
138 filter(BLUR, 15)
139 filter(bloomShader);
140}

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