1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/fireworks/modules/objects/color.v
2021-01-26 23:13:11 +02:00

13 lines
206 B
V

module objects
import gx
import rand
pub fn random_color() gx.Color {
return gx.Color{
r: byte(rand.int_in_range(0, 256))
g: byte(rand.int_in_range(0, 256))
b: byte(rand.int_in_range(0, 256))
}
}