mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
140 B
V
13 lines
140 B
V
module objects
|
|
|
|
import gx
|
|
import rand
|
|
|
|
pub fn random_color() gx.Color {
|
|
return gx.Color{
|
|
r: rand.u8()
|
|
g: rand.u8()
|
|
b: rand.u8()
|
|
}
|
|
}
|