記録

勉強したことに関するのノート。見返して分かるようにしてます。

2018-11-10から1日間の記事一覧

7回目のp5.js

function setup() { createCanvas(400, 400); colorMode(HSB, 360, 100, 100, 100); rectMode(CENTER); background(0, 0, 0); } function draw() { fill(0, 0, 0, 1); fill(30, 80, 100); noStroke(); push(); translate(200, 200); rotate(frameCount * 0.0…

arcが回る

function setup() { createCanvas(400, 400); colorMode(HSB, 360, 100, 100, 100); angleMode(DEGREES); background(0, 0, 0); frameRate(10); } function draw() { fill(0, 0, 0, 100); rect(0, 0, width, height); push(); translate(width / 2, height /…