feat: added to_vec to the Color trait to allow the colors to be lerped and produce gradients

This commit is contained in:
lisk77 2025-03-30 00:06:33 +01:00
parent 531609e95b
commit f891de2909
13 changed files with 63 additions and 4 deletions

View file

@ -1,5 +1,4 @@
use std::ops::{Add, Sub, Mul, Div};
use crate::{cross, dot, Point3};
use std::ops::*;
use crate::vector::{Vec2, Vec3, Vec4};
trait LinearTransformation {