View unanswered posts | View active topics It is currently Tue Sep 17, 2019 2:27 am



Reply to topic  [ 4 posts ] 
 Changing an MOPixels Colour 
Author Message

Joined: Sat Oct 22, 2011 8:07 pm
Posts: 148
Reply with quote
Post Changing an MOPixels Colour
Is it possible to change the colour of an MOPixel with lua?


Sun Oct 23, 2011 9:43 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3134
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Changing an MOPixels Colour
Not directly, but there are ways of making it appear to change colour. If you were define a particle of every possible colour (there are only 256 possible colours, so that's a bit easier to deal with), you could delete the original particle, spawn a new one with the correct colour, and then change its Sharpness, Mass, Pos, Vel, et cetera to be the same. In theory, that would work, although it could potentially be a bit buggy.


Sun Oct 23, 2011 7:54 pm
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Changing an MOPixels Colour
Well, if you only wanted to change between a couple colors, you'd only need those colors, not every color possible.

What circumstance do you want the color change to happen under?


Wed Oct 26, 2011 5:18 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 11713
Location: Here
Reply with quote
Post Re: Changing an MOPixels Colour
You could also try having a multi-framed 1 pixel MOSRotating over the MOPixel, with each frame being a different color.


Thu Oct 27, 2011 5:59 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.015s | 15 Queries | GZIP : Off ]