N-Candidate

SubscriptionEffect layer · reads its inputMIT

N-Candidate

Preview of N-Candidate

This is part of a CreativePower subscription. Subscribe to see its code and use it in your pages.

BehaviourStill
WeightMedium
ColourCool
Where it came from

gyng/ditherer @ fcf86f25dd9e · MIT · Ng Guoyou, contributors

Made of packages/ditherer-filters/src/filters/nCandidateDither.ts, packages/ditherer-filters/src/filters/nCandidateDitherGL.ts, demos/ditherer/_patched/palettes/user.ts. Runs on ditherer-filters.

Licence notice — travels with every copy
N-Candidate — from gyng/ditherer @ fcf86f25dd9e109940fe5eb9b629b7086b3a438d (MIT).

Copyright 2026 Ng Guoyou, contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Colour conversion in this package cites a Stack Overflow answer for the RGB-to-Lab formula; it is a standard formula, not copied code.

Modifications (CreativePower): imported on 2026-10-04 from the effects-staging run of gyng/ditherer @ fcf86f25dd9e. The effect's page runs on CreativePower's effect host (its speed, off-screen pause, render resolution and design tokens), its colours read the design tokens with its own values as fallbacks, and its main parameters are exposed as settings.