File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7070< script >
7171const API = 'https://bench-volumes-pontiac-riders.trycloudflare.com' ;
7272
73- const DEFAULT = `class _PSketch : public PApplet {
74- float angle = 0;
75- public:
76- void setup() override {
77- size(500, 400, P3D);
78- }
79- void draw() override {
80- background(20);
81- lights();
82- translate(width/2, height/2);
83- rotateX(angle * 0.7f);
84- rotateY(angle);
85- fill(232, 180, 0);
86- box(130);
87- angle += 0.02f;
88- }
89- };` ;
73+ const DEFAULT = `float angle = 0;
74+
75+ void setup() {
76+ size(500, 400, P3D);
77+ }
78+
79+ void draw() {
80+ background(20);
81+ lights();
82+ translate(width/2, height/2);
83+ rotateX(angle * 0.7f);
84+ rotateY(angle);
85+ fill(232, 180, 0);
86+ box(130);
87+ angle += 0.02f;
88+ }` ;
9089
9190const editor = CodeMirror . fromTextArea ( document . getElementById ( 'code-editor' ) , {
9291 mode : 'text/x-cppmode' ,
You can’t perform that action at this time.
0 commit comments