Color mixing
tatiang
Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
I've been working on a game that involves sliding single color bars across each other to create blended colors (e.g. yellow+blue=green). Ideally, I'd like bright, strong primary colors but I'm finding that I have to set self.color.alpha to 0.5 (50%) to get the colors to look blended at all.
Unfortunately, in addition to the less than ideal look of the semi-transparent images, I have to contend with the fact that the colors look different based on the layering. So blue over yellow is not the same as yellow over blue:
I think I can fix that by using a layer changing method (duplicate actors on a "front" and "back" layer that swap with each other) but I'm looking for general suggestions about how to improve the color blending.
Unfortunately, in addition to the less than ideal look of the semi-transparent images, I have to contend with the fact that the colors look different based on the layering. So blue over yellow is not the same as yellow over blue:
I think I can fix that by using a layer changing method (duplicate actors on a "front" and "back" layer that swap with each other) but I'm looking for general suggestions about how to improve the color blending.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Best Answers
-
gyroscope I am here.Posts: 6,598
Hi @tatiang A couple of observations which might or might not help you:
• I changed the blue to cyan, and with the yellow set to Multiply, not Additive, I get green where they overlap.
• if the background is white, you see both colours, but when the colour (in this case, yellow) is set to Multiply and is on black, it disappears, so obviously it'll need a white box in the back of it to show it.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
-
Socks London, UK.Posts: 12,822@tatiang
You are going to have to decide on process colours, C,M,Y (with K being made from a mix of all three) or 'transmitted' (RGB) colours . . . . if you want them to work on any background of your choice you will need to give each actor a substrate of some kind (white for CMYK / black for RGB) and set them on the correct transfer mode (multiply for CMYK / screen for RGB).
If you don't use a substrate actor then your background will need to be white for a CMYK system or black for a RGB system.
Here's quick example:
http://www.mediafire.com/?z5oj33ei8nobjb8
Top row CMYK / bottom row RGB.
[caution, this was thrown together pretty quickly and uses the same move rules for all the actors (laziness on my part) so once you've placed them over each other don't click on the mixed area otherwise you will pick up all the actors at once !!]
Answers
Templates: 2048 • Pinch Zoom • Easy Universal Build • Fruit Ninja Blade Effect • 4 Pics 1 Word • Offline Timer
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
This is how your TV, computer monitor, Photoshop and GameSalad (etc etc) work.
Read this (if you have time): http://en.wikipedia.org/wiki/RGB_color_model
You might be confusing this with a reflected (rather than transmitted) colour model, for instance if you were to paint on paper then blue and red would give you a purple - if that is what you are after then playing around with CMYK will probably be a better route.
I'm slightly color blind so your (and everyone else's) magenta is my 'pink' :P
That's why I couldn't play this fabulous looking game: https://forums.gamesalad.com/discussion/41363/ink-blend-puzzle-game-ink-blend-master-release
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's a quick red + blue = purple mix:
http://www.mediafire.com/?c9lp8zwz48i6su4
That works pretty nicely for yellow, too... yay! Thanks for all your help!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I've got a 50% genetic share in a 5 year old (just 5 last month), if you ever want to stage a series of illegal underground toddler races for cash PM me, I want in.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Who said the coffee is for me ?