VectorCraft: An open-source, vector art tool written by scratch in pure Rust
G2: Effect › Artistic › Palette Knife raster filter
bflatasticf329f6271dbd
diff --git a/crates/effects/src/lib.rs b/crates/effects/src/lib.rsindex 5045962f4..a2b0f2a02 100644--- a/crates/effects/src/lib.rs+++ b/crates/effects/src/lib.rs@@ -148,6 +148,7 @@ fn lengths_of(id: &str) -> Lengths {"stylize.innerGlow" | "stylize.outerGlow" => always(&["blur"]),"stylize.glowingEdges" => always(&["edgeWidth", "smoothness"]),"brushStrokes.accentedEdges" => always(&["edgeWidth"]),+ "artistic.paletteKnife" => always(&["strokeSize"]),"brushStrokes.angledStrokes" | "brushStrokes.crosshatch" | "brushStrokes.inkOutlines" => always(&["strokeLength"]),"brushStrokes.spatter" => always(&["sprayRadius"]),"brushStrokes.sprayedStrokes" => always(&["strokeLength", "sprayRadius"]),@@ -377,6 +378,13 @@ pub fn effect_catalog() -> Vec<EffectInfo> {"{glowSize: -24..24 (5; above 0 the light areas glow, below 0 the dark ones; farther from 0 spreads the glow wider), glowBrightness: 0..50 (15; a stronger glow over dimmer greys), color: \"#rrggbb\" (\"#4da6ff\"; the glow's colour)} redraws the object in greys lit by a coloured glow, keeping its coverage. Original visual approximation; chosen VectorCraft defaults.",json!({"glowSize": 5.0, "glowBrightness": 15.0, "color": "#4da6ff"}),),+ r(+ "artistic.paletteKnife",+ "Palette Knife…",+ ARTISTIC,+ "{strokeSize: 1..50 (10; length of the knife strokes in document units), strokeDetail: 1..3 (2; more detail keeps more of the original), softness: 0..10 (3; softens the strokes)} smears the object's colours with short angled knife strokes, keeping its coverage. Original visual approximation; chosen VectorCraft defaults.",+ json!({"strokeSize": 10.0, "strokeDetail": 2.0, "softness": 3.0}),+ ),r("artistic.plasticWrap","Plastic Wrap…",diff --git a/crates/effects/src/pixel/artistic.rs b/crates/effects/src/pixel/artistic.rsindex edd5b9342..33eb43f5f 100644--- a/crates/effects/src/pixel/artistic.rs+++ b/crates/effects/src/pixel/artistic.rs@@ -1,11 +1,13 @@-//! Effect › Artistic (Cutout, Dry Brush, Film Grain, Neon Glow, Plastic Wrap, Poster Edges, Smudge Stick, Sponge and+//! Effect › Artistic (Cutout, Dry Brush, Film Grain, Neon Glow, Palette Knife, Plastic Wrap, Poster Edges, Smudge Stick, Sponge and//! Watercolor). Original filters built from//! public behaviour documentation://! <https://helpx.adobe.com/illustrator/using/summary-effects.html> and//! <https://helpx.adobe.com/photoshop-elements/using/artistic-filters.html>.//! These are visual approximations, not reproductions of a proprietary algorithm.-use super::brushstrokes::stroke_reach;+use std::f64::consts::TAU;++use super::brushstrokes::{Smear, mix, stroke_reach, unit, unpremultiply};use super::edges::sobel;use super::pixelate::{Place, cell, rand, value_noise};use super::texture::{luma, premultiply, straight};@@ -472,3 +474,52 @@ pub(super) fn dry_brush(px: &mut [[u8; 4]], w: usize, h: usize, space: &PixelSpa}px.copy_from_slice(&out);}++const SALT_KNIFE: u64 = 208;++/// How far Palette Knife reaches with strokes `stroke_size` long and Softness `softness` (0..10).+pub(super) fn palette_knife_reach(stroke_size: f64, softness: f64) -> f64 {+ stroke_reach(stroke_size) + 3.0 * 0.35 * softness.clamp(0.0, 10.0) + 1.0+}++/// Artistic › Palette Knife: the object repainted with short, angled knife strokes that smear its+/// colours; `stroke_size` (1..50) sets their length, `stroke_detail` (1..3) keeps more of the+/// original where it's higher, and `softness` (0..10) softens the strokes. Coverage is kept.+pub(super) fn palette_knife(px: &mut [[u8; 4]], w: usize, h: usize, space: &PixelSpace, stroke_size: f64, stroke_detail: f64, softness: f64) {+ let Some(place) = Place::new(space, w, h) else { return };+ if !(stroke_size.is_finite() && stroke_detail.is_finite() && softness.is_finite()) {+ return;+ }+ let len = stroke_size.clamp(1.0, 50.0);+ let keep = ((stroke_detail.clamp(1.0, 3.0) - 1.0) / 2.0) as f32;+ let smear = Smear::new(px, w, h, &place, len);+ let row = (0.25 * smear.len).max(1.0);+ let cell = len * 0.35;+ let src = px.to_vec();+ place.each(px, |x, y, p| {+ if p[3] == 0 {+ return;+ }+ let q = place.at(x, y);+ let angle = TAU * value_noise(SALT_KNIFE, q.x / cell, q.y / cell);+ let dir = Vec2::new(angle.cos(), angle.sin());+ let pm = smear.stroke(SALT_KNIFE + 1, q, dir, row);+ let orig = unit(src.get(y * w + x).copied().unwrap_or([0; 4]));+ let coverage = orig[3];+ let (c, _) = unpremultiply(mix(orig, pm, 1.0 - keep));+ *p = premultiply(c, coverage);+ });+ let sigma = 0.35 * softness.clamp(0.0, 10.0) / place.px;+ if sigma > 0.0 {+ let (mut colour, alpha) = planes(px);+ let cover = alpha.clone();+ soften(&mut colour, &alpha, w, h, sigma);+ for (k, p) in px.iter_mut().enumerate() {+ if cover[k] == 0.0 {+ continue;+ }+ let c = [colour[0][k], colour[1][k], colour[2][k]];+ *p = premultiply(c, cover[k]);+ }+ }+}diff --git a/crates/effects/src/pixel/mod.rs b/crates/effects/src/pixel/mod.rsindex 2e2325173..253abf45b 100644--- a/crates/effects/src/pixel/mod.rs+++ b/crates/effects/src/pixel/mod.rs@@ -43,11 +43,12 @@ pub use sketch::{HALFTONE_TYPES, HalftonePattern};pub use texture::{GRAIN_TYPES, Grain, LIGHT_DIRECTIONS, Light, TEXTURES, TEXTURES_LOADED, Texture};/// The Photoshop-style effect ids (all raster effects, see [`crate::is_raster`]).-pub const PIXEL_EFFECTS: [&str; 48] = [+pub const PIXEL_EFFECTS: [&str; 49] = ["artistic.cutout","artistic.dryBrush","artistic.filmGrain","artistic.neonGlow",+ "artistic.paletteKnife","artistic.plasticWrap","artistic.posterEdges","artistic.smudgeStick",@@ -122,6 +123,10 @@ pub enum PixelFx {/// light areas (`size` above 0) or the dark ones (below 0), spread by |`size`| (-24..24), as/// strong as `brightness` (0..50).NeonGlow { size: f64, brightness: f64, colour: [f32; 3] },+ /// Artistic › Palette Knife: knife strokes `stroke_size` (1..50) long smear the colours;+ /// `stroke_detail` (1..3) keeps more original detail when higher; `softness` (0..10) softens+ /// the strokes.+ PaletteKnife { stroke_size: f64, stroke_detail: f64, softness: f64 },/// Artistic › Plastic Wrap: specular highlights as strong as `highlight` (0..20) on a relief/// wrinkled by `detail` (0..15) and softened by `smoothness` (1..15).PlasticWrap { highlight: f64, detail: f64, smoothness: f64 },@@ -307,6 +312,11 @@ pub(crate) fn parse(id: &str, p: &Value) -> Option<PixelFx> {brightness: num(p, "glowBrightness", 15.0).clamp(0.0, 50.0),colour: crate::raster::color_param(p, vectorcraft_doc::color::Color::rgb(0.3, 0.65, 1.0)).to_rgb(),},+ "artistic.paletteKnife" => PixelFx::PaletteKnife {+ stroke_size: num(p, "strokeSize", 10.0).clamp(1.0, 50.0),+ stroke_detail: num(p, "strokeDetail", 2.0).clamp(1.0, 3.0),+ softness: num(p, "softness", 3.0).clamp(0.0, 10.0),+ },"artistic.posterEdges" => PixelFx::PosterEdges {thickness: num(p, "edgeThickness", 2.0).clamp(0.0, 10.0),intensity: num(p, "edgeIntensity", 1.0).clamp(0.0, 10.0),@@ -523,6 +533,7 @@ impl PixelFx {PixelFx::SmartBlur { radius, .. } => radius,PixelFx::AccentedEdges { .. } => 0.0,// Strokes reach out of the object as far as they reach into it.+ PixelFx::PaletteKnife { stroke_size, softness, .. } => artistic::palette_knife_reach(stroke_size, softness),PixelFx::AngledStrokes { length, .. } | PixelFx::GraphicPen { length, .. } | PixelFx::InkOutlines { length, .. } => {brushstrokes::stroke_reach(length)}@@ -581,6 +592,7 @@ impl PixelFx {PixelFx::Watercolor { detail, .. } => Some(paint::watercolor_reach(detail)),PixelFx::AccentedEdges { width, smoothness, .. } => Some(brushstrokes::accent_reach(width, smoothness)),// The strokes, and the softened tones that choose them.+ PixelFx::PaletteKnife { stroke_size, softness, .. } => Some(artistic::palette_knife_reach(stroke_size, softness)),PixelFx::AngledStrokes { length, .. } | PixelFx::GraphicPen { length, .. } => {Some(brushstrokes::stroke_reach(length).max(brushstrokes::TONE_REACH))}@@ -651,6 +663,9 @@ impl PixelFx {PixelFx::Watercolor { detail, shadow, texture } => paint::watercolor(px, w, h, space, detail, shadow, texture),PixelFx::PlasticWrap { highlight, detail, smoothness } => artistic::plastic_wrap(px, w, h, space, highlight, detail, smoothness),PixelFx::NeonGlow { size, brightness, colour } => artistic::neon_glow(px, w, h, space, size, brightness, colour),+ PixelFx::PaletteKnife { stroke_size, stroke_detail, softness } => {+ artistic::palette_knife(px, w, h, space, stroke_size, stroke_detail, softness)+ }PixelFx::PosterEdges { thickness, intensity, posterization } => {artistic::poster_edges(px, w, h, space, thickness, intensity, posterization)}diff --git a/crates/effects/src/pixel/tests.rs b/crates/effects/src/pixel/tests.rsindex 28f07e380..09a8d811c 100644--- a/crates/effects/src/pixel/tests.rs+++ b/crates/effects/src/pixel/tests.rs@@ -2647,3 +2647,30 @@ fn artistic_filters_look_the_same_at_any_resolution() {assert!(diff < 12.0, "{id}: mean difference {diff}");}}++#[test]+fn palette_knife_params_take_defaults_and_stay_in_range() {+ assert_eq!(fx("artistic.paletteKnife", json!({})), PixelFx::PaletteKnife { stroke_size: 10.0, stroke_detail: 2.0, softness: 3.0 });+ assert_eq!(+ fx("artistic.paletteKnife", json!({"strokeSize": 0, "strokeDetail": 0, "softness": 99})),+ PixelFx::PaletteKnife { stroke_size: 1.0, stroke_detail: 1.0, softness: 10.0 }+ );+ assert!(fx("artistic.paletteKnife", json!({})).outset(Rect::new(0.0, 0.0, 40.0, 30.0)) > 0.0);+}++#[test]+fn palette_knife_smears_a_ramp_and_keeps_coverage() {+ let (w, h) = (48, 24);+ let src = ramp(w, h);+ let mut out = src.clone();+ fx("artistic.paletteKnife", json!({"strokeSize": 20, "strokeDetail": 1, "softness": 0})).apply(&mut out, w, h, &space(w, h));+ assert_ne!(out, src);+ assert!(out.as_chunks::<4>().0.iter().zip(src.as_chunks::<4>().0).all(|(o, s)| o[3] == s[3]));+ let mut gentle = src.clone();+ fx("artistic.paletteKnife", json!({"strokeSize": 20, "strokeDetail": 3, "softness": 0})).apply(&mut gentle, w, h, &space(w, h));+ let mean = |buf: &Vec<u8>| {+ let n = buf.len() / 4;+ buf.as_chunks::<4>().0.iter().map(|p| f64::from(p[0])).sum::<f64>() / n as f64+ };+ assert!((mean(&gentle) - mean(&src)).abs() < (mean(&out) - mean(&src)).abs());+}diff --git a/crates/engine/src/tests_rasterfilters.rs b/crates/engine/src/tests_rasterfilters.rsindex e46b5eef6..e5b17f02a 100644--- a/crates/engine/src/tests_rasterfilters.rs+++ b/crates/engine/src/tests_rasterfilters.rs@@ -31,11 +31,12 @@ const BRUSH_STROKES: [(&str, &str); 8] = [];/// Effect › Artistic, at their defaults.-const ARTISTIC: [(&str, &str); 9] = [+const ARTISTIC: [(&str, &str); 10] = [("artistic.cutout", "{}"),("artistic.dryBrush", "{}"),("artistic.filmGrain", "{}"),("artistic.neonGlow", "{}"),+ ("artistic.paletteKnife", "{}"),("artistic.plasticWrap", "{}"),("artistic.posterEdges", "{}"),("artistic.smudgeStick", "{}"),diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsvindex c817a8707..b59d8399f 100644--- a/crates/ui-egui/src/i18n/bg.tsv+++ b/crates/ui-egui/src/i18n/bg.tsv@@ -4555,7 +4555,9 @@ lighting Light СветлинаDry Brush… Суха четка…Dry Brush Суха четкаNeon Glow… Неоново сияние…+ Palette Knife… Нож за палитра…Neon Glow Неоново сияние+ Palette Knife Нож за палитраPoster Edges… Плакатни ръбове…Poster Edges Плакатни ръбовеLevels Ниваdiff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 61bb3dc96..4d425327f 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -5054,7 +5054,9 @@ imageTrace Outline ObrysDry Brush… Suchý štětec…Dry Brush Suchý štětecNeon Glow… Neonová záře…+ Palette Knife… Špachtle…Neon Glow Neonová záře+ Palette Knife ŠpachtlePoster Edges… Plakátové okraje…Poster Edges Plakátové okrajeLevels Úrovnědiff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsvindex faffd623a..a2a9517ed 100644--- a/crates/ui-egui/src/i18n/da.tsv+++ b/crates/ui-egui/src/i18n/da.tsv@@ -5178,10 +5178,12 @@ swatch Bright Violet Kraftig violetCutout… Udklip…Dry Brush… Tør pensel…Neon Glow… Neonglød…+ Palette Knife… Paletkniv…Poster Edges… Plakatkanter…Cutout UdklipDry Brush Tør penselNeon Glow Neonglød+ Palette Knife PaletknivPoster Edges PlakatkanterApply Data Set Anvend datasætCancel Pattern Editing Annullér redigering af mønsterdiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex 7175e78c5..e174368fd 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -4642,7 +4642,9 @@ lighting Light LichtDry Brush… Trockenpinsel…Dry Brush TrockenpinselNeon Glow… Neonglühen…+ Palette Knife… Palettenmesser…Neon Glow Neonglühen+ Palette Knife PalettenmesserPoster Edges… Posterkanten…Poster Edges PosterkantenLevels Stufendiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex 37a50d8bd..8d844f800 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -2264,7 +2264,9 @@ lighting Light ΦωςDry Brush… Ξηρό πινέλο…Dry Brush Ξηρό πινέλοNeon Glow… Λάμψη νέον…+ Palette Knife… Μαχαίρι παλέτας…Neon Glow Λάμψη νέον+ Palette Knife Μαχαίρι παλέταςPoster Edges… Άκρες αφίσας…Poster Edges Άκρες αφίσαςLevels Επίπεδαdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex d746a00ed..f98165673 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -4642,7 +4642,9 @@ lighting Light LuzDry Brush… Pincel seco…Dry Brush Pincel secoNeon Glow… Resplandor de neón…+ Palette Knife… Espátula…Neon Glow Resplandor de neón+ Palette Knife EspátulaPoster Edges… Bordes de póster…Poster Edges Bordes de pósterLevels Nivelesdiff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsvindex be6a0d47e..8e5e631bd 100644--- a/crates/ui-egui/src/i18n/fi.tsv+++ b/crates/ui-egui/src/i18n/fi.tsv@@ -4949,7 +4949,9 @@ imageTrace Outline ÄäriviivaDry Brush… Kuiva sivellin…Dry Brush Kuiva sivellinNeon Glow… Neonhehku…+ Palette Knife… Palettiveitsi…Neon Glow Neonhehku+ Palette Knife PalettiveitsiPoster Edges… Julisteen reunat…Poster Edges Julisteen reunatLevels Tasotdiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex 3206cb52f..80a96e071 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -4652,7 +4652,9 @@ lighting Light LumièreDry Brush… Pinceau sec…Dry Brush Pinceau secNeon Glow… Néon…+ Palette Knife… Couteau à palette…Neon Glow Néon+ Palette Knife Couteau à palettePoster Edges… Bords d’affiche…Poster Edges Bords d’afficheLevels Niveauxdiff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex 9b34c44ec..9f101d129 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -1585,7 +1585,9 @@ file-filter Templates SablonokDry Brush… Száraz ecset…Dry Brush Száraz ecsetNeon Glow… Neonfény…+ Palette Knife… Palettakés…Neon Glow Neonfény+ Palette Knife PalettakésPoster Edges… Poszterszélek…Poster Edges PoszterszélekLevels Szintekdiff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex e5bf05582..769a989a6 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -5178,10 +5178,12 @@ swatch Bright Violet Violet cerahCutout… Potongan…Dry Brush… Kuas kering…Neon Glow… Pendar neon…+ Palette Knife… Pisau palet…Poster Edges… Tepi poster…Cutout PotonganDry Brush Kuas keringNeon Glow Pendar neon+ Palette Knife Pisau paletPoster Edges Tepi posterApply Data Set Terapkan set dataCancel Pattern Editing Batalkan pengeditan poladiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex 264c9a961..223e9ebf1 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -4684,7 +4684,9 @@ lighting Light LuceDry Brush… Pennello secco…Dry Brush Pennello seccoNeon Glow… Bagliore neon…+ Palette Knife… Spatola…Neon Glow Bagliore neon+ Palette Knife SpatolaPoster Edges… Bordi poster…Poster Edges Bordi posterLevels Livellidiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex f52179340..27418db9e 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -4723,7 +4723,9 @@ lighting Light ライトDry Brush… ドライブラシ…Dry Brush ドライブラシNeon Glow… ネオングロー…+ Palette Knife… パレットナイフ…Neon Glow ネオングロー+ Palette Knife パレットナイフPoster Edges… ポスターエッジ…Poster Edges ポスターエッジLevels レベル数diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsvindex 7c4fa5668..b1ad1d76c 100644--- a/crates/ui-egui/src/i18n/ka.tsv+++ b/crates/ui-egui/src/i18n/ka.tsv@@ -5077,7 +5077,9 @@ imageTrace Outline კონტურიMove Slice ნაჭრის გადაადგილებაMove Type on a Path ტრაექტორიაზე ტექსტის გადაადგილებაNeon Glow ნეონის ნათება+ Palette Knife პალეტის დანაNeon Glow… ნეონის ნათება…+ Palette Knife… პალეტის დანა…New Artboard Options… ახალი სამუშაო დაფის პარამეტრები…New Guide ახალი დამხმარე ხაზიNext Artboard შემდეგი სამუშაო დაფაdiff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex a58ee3a03..51cde1959 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -4647,7 +4647,9 @@ lighting Light 광원Dry Brush… 드라이 브러시…Dry Brush 드라이 브러시Neon Glow… 네온 글로…+ Palette Knife… 팔레트 나이프…Neon Glow 네온 글로+ Palette Knife 팔레트 나이프Poster Edges… 포스터 가장자리…Poster Edges 포스터 가장자리Levels 레벨 수diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 5cb96f8c6..8c334db44 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -5189,10 +5189,12 @@ swatch Bright Violet FelvioletCutout… Knipsel…Dry Brush… Droog penseel…Neon Glow… Neongloed…+ Palette Knife… Paletmes…Poster Edges… Posterranden…Cutout KnipselDry Brush Droog penseelNeon Glow Neongloed+ Palette Knife PaletmesPoster Edges PosterrandenApply Data Set Gegevensset toepassenCancel Pattern Editing Patroon bewerken annulerendiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex 8a755a6d0..3706f95d0 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -4887,7 +4887,9 @@ imageTrace Outline KonturDry Brush… Suchy pędzel…Dry Brush Suchy pędzelNeon Glow… Neonowa poświata…+ Palette Knife… Szpachel…Neon Glow Neonowa poświata+ Palette Knife SzpachelPoster Edges… Krawędzie plakatu…Poster Edges Krawędzie plakatuLevels Poziomydiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 80ed66f89..442547160 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -4044,7 +4044,9 @@ axis Both AmbosDry Brush… Pincel seco…Dry Brush Pincel secoNeon Glow… Brilho neon…+ Palette Knife… Espátula…Neon Glow Brilho neon+ Palette Knife EspátulaPoster Edges… Bordas de pôster…Poster Edges Bordas de pôsterLevels Níveisdiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 2cdbdc41a..34b8835b2 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -4680,7 +4680,9 @@ lighting Light СветDry Brush… Сухая кисть…Dry Brush Сухая кистьNeon Glow… Неоновое свечение…+ Palette Knife… Нож для палитры…Neon Glow Неоновое свечение+ Palette Knife Нож для палитрыPoster Edges… Края плаката…Poster Edges Края плакатаLevels Уровниdiff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsvindex d396e82be..eb1f68f4b 100644--- a/crates/ui-egui/src/i18n/sv.tsv+++ b/crates/ui-egui/src/i18n/sv.tsv@@ -4561,7 +4561,9 @@ lighting Light LjusDry Brush… Torr pensel…Dry Brush Torr penselNeon Glow… Neonsken…+ Palette Knife… Palettkniv…Neon Glow Neonsken+ Palette Knife PalettknivPoster Edges… Affischkanter…Poster Edges AffischkanterLevels Nivåerdiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex d70d2ad9f..114a75ad8 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -4664,7 +4664,9 @@ lighting Light СвітлоDry Brush… Суха кисть…Dry Brush Суха кистьNeon Glow… Неонове сяйво…+ Palette Knife… Ніж палітри…Neon Glow Неонове сяйво+ Palette Knife Ніж палітриPoster Edges… Плакатні краї…Poster Edges Плакатні країLevels Рівніdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex 464b0d377..8407ddc08 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -1273,7 +1273,9 @@Dry Brush… Cọ khô…Dry Brush Cọ khôNeon Glow… Ánh neon…+ Palette Knife… Dao palette…Neon Glow Ánh neon+ Palette Knife Dao palettePoster Edges… Viền áp phích…Poster Edges Viền áp phíchLevels Số mứcdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 08ac98c29..d5e999fd8 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -4948,7 +4948,9 @@ lighting Light 光源Cutout 剪纸Dry Brush 干画笔Neon Glow… 霓虹灯光…+ Palette Knife… 调色刀…Neon Glow 霓虹灯光+ Palette Knife 调色刀Poster Edges… 海报边缘…Poster Edges 海报边缘Levels 色阶数diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 3917676c6..2eeeb9017 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -4754,7 +4754,9 @@ lighting Light 光源Cutout 剪紙Dry Brush 乾畫筆Neon Glow… 霓虹光…+ Palette Knife… 調色刀…Neon Glow 霓虹光+ Palette Knife 調色刀Poster Edges… 海報邊緣…Poster Edges 海報邊緣Levels 色階數diff --git a/crates/ui-egui/src/tests_labels.rs b/crates/ui-egui/src/tests_labels.rsindex 1a2c3dc2c..e264be563 100644--- a/crates/ui-egui/src/tests_labels.rs+++ b/crates/ui-egui/src/tests_labels.rs@@ -88,7 +88,18 @@ fn effect_menu_lists_the_artistic_filters_before_blur() {let labels: Vec<&str> = artistic.iter().map(|e| e.label.as_str()).collect();assert_eq!(labels,- ["Cutout…", "Dry Brush…", "Film Grain…", "Neon Glow…", "Plastic Wrap…", "Poster Edges…", "Smudge Stick…", "Sponge…", "Watercolor…"]+ [+ "Cutout…",+ "Dry Brush…",+ "Film Grain…",+ "Neon Glow…",+ "Palette Knife…",+ "Plastic Wrap…",+ "Poster Edges…",+ "Smudge Stick…",+ "Sponge…",+ "Watercolor…"+ ]);assert!(artistic.iter().all(|e| e.command.as_deref() == Some("effect.dialog")));assert_eq!(artistic[1].params, json!({"effect": "artistic.dryBrush"}));