MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / threshold

Function threshold

node-graph/nodes/raster/src/adjustments.rs:473–501  ·  view source on GitHub ↗
(
	_: impl Ctx,
	#[implementations(
		List<Raster<CPU>>,
		List<Color>,
		List<GradientStops>,
	)]
	#[gpu_image]
	mut image: T,
	#[default(50.)] min_luminance: PercentageF32,
	#[default(100.)] max_lum

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

srgb_to_linearFunction · 0.85
adjustMethod · 0.80
luminance_rec_709Method · 0.80
luminance_perceptualMethod · 0.80
average_rgb_channelsMethod · 0.80
minimum_rgb_channelsMethod · 0.80
maximum_rgb_channelsMethod · 0.80

Tested by

no test coverage detected