Skip to content

Commit f65408b

Browse files
committed
Update Color function
1 parent 31341e1 commit f65408b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Color.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,6 @@ function Base.show(io::IO, c::Color)
9494
end
9595

9696
using Colors
97-
Colors.RGB(c::GeneticTextures.Color) = RGB(c.r, c.g, c.b)
97+
Colors.RGB(c::GeneticTextures.Color) = RGB(c.r, c.g, c.b)
98+
99+
Color(val::Colors.RGB) = Color(val.r, val.g, val.b)

0 commit comments

Comments
 (0)