Skip to content
Pawel Koziol edited this page Aug 25, 2025 · 4 revisions

enum Color { White = 0, Black = 1, colorNone = 2 };

Color is one of the Data types used in Publius. It would work as an int, but defining it increases Type safety

Has two operators.

  • ~color switches from White to Black or vice versa
  • ++color increments loops.

Clone this wiki locally