bubble-chamber: use color objects
parent
1324f6e096
commit
4c9c8ede6f
|
@ -1,9 +1,8 @@
|
||||||
|
|
||||||
USING: kernel random math math.constants math.points accessors multi-methods
|
USING: kernel random math math.constants math.points accessors multi-methods
|
||||||
processing processing.shapes
|
processing processing.shapes
|
||||||
processing.color
|
|
||||||
bubble-chamber.common
|
bubble-chamber.common
|
||||||
bubble-chamber.particle ;
|
bubble-chamber.particle colors ;
|
||||||
|
|
||||||
IN: bubble-chamber.particle.hadron
|
IN: bubble-chamber.particle.hadron
|
||||||
|
|
||||||
|
@ -26,7 +25,7 @@ METHOD: collide { hadron }
|
||||||
|
|
||||||
[ 0.00001 theta-dd-small? ] [ -0.001 0.001 random-theta-dd ] [ ] while
|
[ 0.00001 theta-dd-small? ] [ -0.001 0.001 random-theta-dd ] [ ] while
|
||||||
|
|
||||||
0 1 0 <rgb> >>myc
|
0 1 0 1 rgba boa >>myc
|
||||||
|
|
||||||
drop ;
|
drop ;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
USING: kernel sequences math math.constants math.order accessors
|
USING: kernel sequences math math.constants math.order accessors
|
||||||
processing
|
processing
|
||||||
processing.color ;
|
colors ;
|
||||||
|
|
||||||
IN: bubble-chamber.particle.muon.colors
|
IN: bubble-chamber.particle.muon.colors
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
USING: kernel sequences combinators
|
USING: kernel sequences combinators
|
||||||
math math.vectors math.functions multi-methods
|
math math.vectors math.functions multi-methods
|
||||||
accessors combinators.cleave processing processing.color
|
accessors combinators.cleave processing
|
||||||
bubble-chamber.common ;
|
bubble-chamber.common colors ;
|
||||||
|
|
||||||
IN: bubble-chamber.particle
|
IN: bubble-chamber.particle
|
||||||
|
|
||||||
|
@ -28,8 +28,8 @@ TUPLE: particle pos vel speed speed-d theta theta-d theta-dd myc mya ;
|
||||||
0 >>theta-d
|
0 >>theta-d
|
||||||
0 >>theta-dd
|
0 >>theta-dd
|
||||||
|
|
||||||
0 0 0 1 <rgba> >>myc
|
0 0 0 1 rgba boa >>myc
|
||||||
0 0 0 1 <rgba> >>mya ;
|
0 0 0 1 rgba boa >>mya ;
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue