Download Jar. Uses 994K of libraries. Click here for Pure Java version (6819L/35K).
!7 p-hideconsole { pMain(SimpleGauge); } sclass SimpleGauge extends PApplet { float rotate = (float) -PI/2; /** * Simple Gauge * 2016-11-01 Jeremy Douglass Processing 3.2.1 **/ void settings() { size(200,200); } void setup(){ fill(0,0,0,0); strokeWeight(20); stroke(255,56,0); } void draw(){ background(0); arc(200/2, 200/2, 200*0.7f, 200*0.7f, rotate, rotate + (float) ((millis()%4000.0)/4000*TWO_PI),OPEN); } }
Began life as a copy of #1014266
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014267 |
Snippet name: | Processing: Simple Gauge (OK) |
Eternal ID of this version: | #1014267/9 |
Text MD5: | f3ea9d20f818d7ba9da924483a69c134 |
Transpilation MD5: | 632293c74efebfeca7f8549fad2585da |
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:39:32 |
Source code size: | 456 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 441 / 1107 |
Version history: | 8 change(s) |
Referenced in: | -