0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

楽譜を描画したい! part2 [四分音符]

Posted at

今回は音符を表現してみます

四分音符

少し斜めにした楕円と棒を組み合わせた記号です

function note(){
  stroke(0,0,0);
  fill(0,0,0);
  push();
  translate(width / 2, height / 2);
  rotate(2.6);
  ellipse(0, 0, 26, 18);
  pop();
  push();
  translate(width / 2, height / 2);
  strokeWeight(4);
  line(11, -5, 11, -100);
  pop();
  strokeWeight(2);
}

image.png
このようになりました。

八分音符とかは次やってみます!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?