for Smartphone

ysok-na

2016-08-26

007_for_loop

igeo_01_intro

crate spiral (sin,cos)

color mode
clr(r,g,b,alpha)
hsb(h,s,b,alpha)

import processing.opengl.*;
import igeo.*;

int r = 30; // radius

size(960,720,IG.GL);

for (int i=0; i<100; i++){
  new IPoint(sin(i*0.5)*r,cos(i*0.5)*r,i*5).clr(i*0.01,0,1-i*0.01);
  new IPoint(sin(i*0.5)*r+(3*r),cos(i*0.5)*r,i*5).hsb(i*0.01,1,1);
}

ysok_na 2016-08-26 14:23

Tweet
Share on Tumblr
  • Read more
Write a comment
« 008_for_loop_2D 006_for_loop »
プロフィール
id:ysok_na id:ysok_na
Subscribed unsubscribe Subscribe Subscribe
最新記事
  • 渋谷-代官山-中目黒
  • c と processing(java) ??
  • 180320
  • tofubeats の制作についての話の書き起こし
  • Grasshopper 経由で、インタラクティブな ReduceMesh
カテゴリー
  • c (1)
  • processing_Sample (18)
  • processing (3)
  • 未分類 (50)
  • ghpython (4)
  • 3d_printer (6)
  • blender (10)
  • おやすみなさい (8)
  • ar (1)
  • Fusion360 (2)
  • books (4)
  • 現代思想 (1)
  • lecture (1)
  • ue4 (1)
  • c# (1)
  • nature_of_code (10)
  • autodesk_remake (1)
  • igeo_01_intro (9)
  • AlejandroAravena (1)
注目記事
検索
月別アーカイブ

Start using Hatena Blog!

ysok_na is using Hatena Blog. Would you like to try it too?

Start using Hatena Blog (Free)
What is Hatena Blog?
ysok-na ysok-na

Powered by Hatena Blog | ブログを報告する

Star added

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe