[Fluxus] pdata colour?

Julien Deswaef juego at requiem4tv.com
Tue Mar 19 05:01:50 PDT 2013


Hello list

Been back to Fluxus and I have some questions.
I'm using fluxus-0.18 from Dave's ppa on Ubuntu 12.04.

I have a hard time figuring how pdata type "c:colour" works.

Here's the code

(colour (vector 1 0 0))
(define myCube (build-cube))
(with-primitive myCube
	(display (pdata-ref "c" 0))(newline)
	(pdata-set! "c" 0 (vector 0 1 0 1))
	(display (pdata-ref "c" 0))(newline))

; returns
; #(0.0 0.0 0.0 1.0)
; #(0.0 1.0 0.0 1.0)

See the screenshot attached to this mail.
I was expecting it to first return #(1.0 0.0 0.0 1.0)
and then to set the vertex 0 to color green.
But none of these happen.

What am I doing wrong?

Another question:
Have a .fluxus.scm script in my /home/user folder but Fluxus doesn't
seem to load it when it starts. Should it be somewhere else?

Thanks so much

Cheers

Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fluxus-0.18-pdata-c.png
Type: image/png
Size: 26416 bytes
Desc: not available
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20130319/191e343f/attachment-0002.png>


More information about the Fluxus mailing list