diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-17 21:38:27 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-17 21:38:27 (GMT) |
| commit | ffa5ccb6660d77662825db74a2de1b1ab45099c3 (patch) | |
| tree | e197980ab13949884c8a46fc5bdd5e5ae8cf91a9 /src/powder.c | |
| parent | a7e1774d41f6b3f062f16cde5352b400a7585ce8 (diff) | |
| download | powder-ffa5ccb6660d77662825db74a2de1b1ab45099c3.zip powder-ffa5ccb6660d77662825db74a2de1b1ab45099c3.tar.gz | |
Alterations to TRON and fancy effects
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/powder.c b/src/powder.c index 7747f78..ebe8b3d 100644 --- a/src/powder.c +++ b/src/powder.c @@ -931,12 +931,9 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a } if (t==PT_TRON) { - int rr,rg,rb; int randhue = rand()%360; int randomdir = rand()%4; - HSV_to_RGB(randhue,255,255,&rr,&rg,&rb); - parts[i].dcolour = 255<<24 | rr<<16 | rg<<8 | rb; - parts[i].tmp = 1|(randomdir<<2);//set as a head and a direction + parts[i].tmp = 1|(randomdir<<5)|(randhue<<7);//set as a head and a direction parts[i].tmp2 = 4;//tail parts[i].life = 5; } |
