Skip to content

Commit b2889a6

Browse files
committed
make tocolor() type stable
1 parent ec5c748 commit b2889a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/text.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function show_message(s::String, speed::Real = 0.2, color::ColorTypes.AbstractRG
4848
for i in 1:length(s)
4949
img[1:8, (4 + 5*i):(8 + 5*i)] = font[s[i]]
5050
end
51-
tocolor(b) = b ? color : colorant"black"
51+
tocolor(b) = b ? RGB565(color) : RGB565(colorant"black")
5252
for i in 1:(size(img,2) - 7)
5353
frame = tocolor.(img[1:8, i:(i + 7)])
5454
led_matrix()[:] = permutedims(frame, (2,1))

0 commit comments

Comments
 (0)