Update nodes to work with linear color by default (#1135)

* Update nodes to work with linear color by default

* Make tests work in linear not gamma
This commit is contained in:
Keavon Chambers
2023-04-16 12:20:44 -07:00
parent f68bc42fc9
commit fa23e9d55b
8 changed files with 131 additions and 102 deletions

View File

@@ -154,13 +154,16 @@ fn translate_node<Data: TransformMut>(offset: DVec2, mut translatable: Data) ->
mod test {
use super::*;
use crate::raster::*;
use glam::DAffine2;
#[allow(unused_imports)]
use graphene_core::ops::{AddNode, CloneNode};
use graphene_core::raster::*;
use graphene_core::structural::Then;
use graphene_core::transform::{Transform, TransformMut};
use graphene_core::value::{ClonedNode, ValueNode};
use glam::DAffine2;
#[test]
fn test_translate_node() {
let image = Image::new(10, 10, Color::TRANSPARENT);