def draw_flag #==Pegar cor da Palheta==# if Input.pressed(Input::Mouse_Left) for i in 0..4 if in_area?([70+i*22, 195+15, 17, 17]) @color = i end if in_area?([70+i*22, 195+35, 17, 17]) @color = i+5 end end #==Desenhar a cor na bandeira==# for x in 0..5 for y in 0..5 if in_area?([60+x*21, 75+y*21, 20, 20]) $flag_contents[y][x] = @color end end end end end