itch.io is community of indie game creators and players

Devlogs

Color Mixing – How it works (R, G, B logic)

Object Factory
A downloadable game for Windows

Color Mixing – How it works (R, G, B logic)

This tutorial shows you how color mixing is evaluated, so here is the exact logic used in the game.

The system is based purely on RGB colors. Only Red, Green, and Blue are actively mixed — all other colors simply pass through if no valid RGB combination is formed.

🎨 Mixing rules

  • Red + Green + Blue → White

  • Red + Green → Yellow

  • Green + Blue → Cyan

  • Red + Blue → Magenta

Single color input

  • Red → Red

  • Green → Green

  • Blue → Blue

Important notes

  • The order of colors does not matter.

  • Adding more of the same color does not change the result.

  • If no valid RGB combination is detected, the system will pass through the first input color.

This means the mixer only checks which RGB colors are present, not how many.

If you think your color mix should be counted but isn’t, please send me a screenshot at
support@kistlerstudios.com

Thank you!

Download Object Factory