processing / p5.js
source:
refferences:
sandbox:
function setup() {
createCanvas(500, 500);
background(120);
}
function draw() {
fill(233, 11, 44); // color to fill the shapes
stroke(1); // stroke color
strokeWeight(2);
line(20, 20, 160, 60); // line from (20,20) to (160,60)
fill(23, 44, 223);
rect(170, 170, 120, 70); // rectangle on (170,170) with 120x70 size
fill(223, 212, 44);
ellipse(120, 130, 100, 100); // ellipse on (120,130) with height 100 and width 100, which makes it a circle
noLoop();
}
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
Syntax highlighted code block
# Header 1
## Header 2
### Header 3
- Bulleted
- List
1. Numbered
2. List
**Bold** and _Italic_ and `Code` text
[Link](url) and ![Image](src)
For more details see GitHub Flavored Markdown.