This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function setup() { | |
| createCanvas(400, 300); | |
| } | |
| function draw() { | |
| background(0,0,0); | |
| stroke(255,255,255); | |
| line(0,0,200,150); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function setup() { | |
| createCanvas(400, 300); | |
| background(0,0,0); | |
| noStroke(); | |
| } | |
| function draw() { | |
| fill(204,204,204); | |
| triangle(12, 12, 12, 200, 81, 200); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var angles = [ 30, 10, 45, 35, 60, 38, 75, 67 ]; | |
| function setup() { | |
| createCanvas(400, 300); | |
| noStroke(); | |
| } | |
| function draw() { | |
| background(0); | |
| pieChart(250, angles); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var xspacing = 16; | |
| var w; | |
| var theta = 0.0; | |
| var amplitude = 75.0; | |
| var period = 500.0; | |
| var dx; | |
| var yvalues; | |
| function setup() { | |
| createCanvas(400, 300); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var palette = ["#BFBFBF","#A1A1A1","#696969","#242A38","#141926"] | |
| function setup() { | |
| createCanvas(400, 300); | |
| } | |
| function draw() { | |
| noStroke(); | |
| var size = height/6 | |
| for(y=0;y<height;y=y+size){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Get a remote json and assign it to the var json | |
| var json = get('https://api.coindesk.com/v1/bpi/historical/close.json?start=2017-06-01&end=2017-12-06') | |
| function setup() { | |
| createCanvas(188, 188) | |
| } | |
| function draw() { | |
| //Remove Borders | |
| noStroke(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function setup() { | |
| createCanvas(400, 400); | |
| } | |
| function draw() { | |
| if (random()>0.5) { | |
| background("#004047"); //night | |
| } else { | |
| background("#D6F4F6"); //day | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: void | |
| function(e) { | |
| var a = function(e) { | |
| e("._1n6QCWhOqlnrzKvA4Q6dbB").css({ | |
| top: "0px", | |
| left: "40px", | |
| display: "flex", | |
| flexDirection: "column" | |
| }), e(".g525kr71XL4ps4xKw4IBu").css({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ctx, doc, selection, page, view, artboards; | |
| function exposeContext(context) { | |
| ctx = context; | |
| doc = context.document; | |
| selection = context.selection; | |
| page = [doc currentPage]; | |
| view = [doc contentDrawView]; | |
| artboards = [[doc currentPage] artboards]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .surface-background { | |
| /*Tweak this value to adjust the canvas background color. | |
| A very dark black will make the shape recognition support lines invisible | |
| */ | |
| background: rgb(30,30,30) !important; | |
| } | |
| .circle-button, ._1fdLYx4plVAyn4a-e84Oxj, ._1fAkufW-JX1VTjJlLj9Bqp { | |
| background-color: rgba(255,255,255,0.1); | |
| } |