mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user