An user asked me how to change background color based in a variable. To do this. Change line BACKGROUND_COLOR = Color.new(128,128,192) to
def backgroundColor
return case pbGet(42)
when 1; Color.new(192,128,128)
when 2; Color.new(128,192,182)
else; Color.new(128,128,192)
end...