美文网首页
processing 如果能下雨就好了

processing 如果能下雨就好了

作者: homeless_honey | 来源:发表于2019-07-29 15:55 被阅读0次

1. 雨滴

  • line(x, y, x, y+len)
  • 雨的长度.
  • x = random(width)
  • y = random(-500, -50)
  • 雨的位置
  • y = y + yspeed
  • 下落速度

2. 变化

  • z = random(0, 20)
  • 雨的远近.
  • thick = map(z, 0, 20, 1, 3)
  • 雨的厚度
  • stroke(191+z, 254, 236)
  • 雨的颜色

3. 真实

  • yspeed = yspeed + grav
  • 重力加速度.
  • if (y > height) {}
  • 连续的雨

4. 控制

  • int de = floor(map(mouseY, 0, height, 100, 0))
  • delay(de)
  • 哦在这停顿

相关文章

  • processing 如果能下雨就好了

    Based on Coding Challenge #4 1. 雨滴 line(x, y, x, y+len) 雨...

  • 给未来媳妇第438封信

    给未来媳妇第438封信, 不下雨了,心里松了口气。 不下雨的时候,如果能早点下班就好了。 但是想想,做梦吧 为期一...

  • 18.10.24

    以前总是想着如果能那样的话就更好了,现在就觉得,其实这样刚刚好!!!

  • 2020-06-14

    如果能喜欢我就好了。

  • Spark Structured Streaming2.3两种计

    micro-batches Processing & Continuous Processing Structur...

  • Fiori-like Prototype (Parallel P

    Parallel Processing. SAPSPTA Parallel Processing Framewor...

  • COMP9311 Database Systems WEEK11

    1.Query Processing query processing is the study of techn...

  • 如果能如果就好了!

    如果时间可以重来,是否当初做抉择有所更改。如果当初选择不同,现在的结局又当如何,可惜这些如果只能在假想中,不可能成...

  • 阵雨

    今天早上起来,发现天空中万里乌云,太好了,铁定要下雨。 最近实在太热了,如果能下场雨的话,那该有多清凉。 吃早饭的...

  • 人生态度

    我们习惯于 对他人 求全责备 对自己 敝帚自珍 如果能反过来 就非常好了

网友评论

      本文标题:processing 如果能下雨就好了

      本文链接:https://www.haomeiwen.com/subject/lcwbrctx.html