Download Jar. Transpiled version (1796L) is out of date.
!759 extend PApplet. p { pMain(); } public void settings() { size(600, 200); } int x = 0; float py = 0; public void setup() { background(0); } public void draw() { noStroke(); fill(0,0,0,15); rect(0,0,width,height); translate(0,height/2); x++; x%=width; float fx = py + random(-20,20); stroke(100,255,100); noFill(); line(x-1,py, x,fx); py = fx; if(py>height/2) py=height/2; if(py<-height/2) py=-height/2; }
Began life as a copy of #1013742
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014265 |
| Snippet name: | Heart Beat without extra class (doesn't work, PApplet methods clash with JavaX functions) |
| Eternal ID of this version: | #1014265/4 |
| Text MD5: | 4e224ebdf776d4c1503a898a5bd6368d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-19 15:21:40 |
| Source code size: | 467 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 712 / 1727 |
| Version history: | 3 change(s) |
| Referenced in: | -