Drkcore

27 09 2008 processing jruby Tweet

今日のaction-coding

drawCirclesを参考に。

def setup
  size 600, 600
end

def draw
  colorMode(HSB)
  dia = 60
  len = width/dia +1
  background(255)
  smooth()
  grid len, len, dia, dia do |x,y|
    fill(random(360),150,200,200)
    strokeWeight(random(20))
    stroke(random(360),150,200,200)
    f = random(15)
    ellipse(x, y, dia-f, dia-f)
  end
end

circles

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021