Download Jar. Uses 994K of libraries. Click here for Pure Java version (6819L/35K).
1 | !7 |
2 | |
3 | p-hideconsole { pMain(SimpleGauge); } |
4 | |
5 | sclass SimpleGauge extends PApplet { |
6 | |
7 | float rotate = (float) -PI/2; |
8 | |
9 | /** |
10 | * Simple Gauge |
11 | * 2016-11-01 Jeremy Douglass Processing 3.2.1 |
12 | **/ |
13 | void settings() { size(200,200); } |
14 | |
15 | void setup(){ |
16 | fill(0,0,0,0); |
17 | strokeWeight(20); |
18 | stroke(255,56,0); |
19 | } |
20 | void draw(){ |
21 | background(0); |
22 | arc(200/2, 200/2, 200*0.7f, 200*0.7f, rotate, rotate + (float) ((millis()%4000.0)/4000*TWO_PI),OPEN); |
23 | } |
24 | |
25 | } |
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: | 442 / 1108 |
Version history: | 8 change(s) |
Referenced in: | [show references] |