simplify
This commit is contained in:
parent
1c2a324f55
commit
4e920b5f0a
3 changed files with 119 additions and 156 deletions
|
|
@ -76,6 +76,10 @@ fract :: proc(val: f32) -> f32 {
|
|||
return val - math.trunc(val)
|
||||
}
|
||||
|
||||
color_to_fcolor :: proc(color: rl.Color) -> [4]f32 {
|
||||
return cast([4]f32)(color) / 255.0
|
||||
}
|
||||
|
||||
/// ### TYPES ### ///
|
||||
v1 :: [1]f32
|
||||
v2 :: [2]f32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue