Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage paintKit.package·originates fromworld 0a0b119f-a…

colour

The painter's own colour: what solvent takes, and how it comes back.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

colour

The painter's own colour: what solvent takes, and how it comes back.

This is the stake in a fight where nobody is hurt. Solvent that hits the painter strips colour (1 = whole,
0 = none). At zero the painter is WASHED OUT: slowed, unable to paint or fire, easier to hold, until colour has
returned to cfg.colour.washedOut.reviveAt. Colour only returns while nobody is looking, after a delay, and
faster on friendly ground.

  local Colour = require("~.modules.colour")
  local colour = Colour.new(cfg.colour)
  local e = colour:wash(0.2)            -- solvent landed: { value, delta, washedOut = true when this hit did it }
  local events = colour:tick(dt, { seen = false, friendly = 0.6 })
  -- friendly 0..1: how much this ground is on the painter's side; events: { type = "revived" } when washed out ends
  colour.value   colour:isWashedOut()
  colour:restore(0.5)                   -- given back at once (a doctor, a safehouse); may end a wash-out
  colour:effects()   -- { speed, canPaint, canFire, grabWindow, drain }  drain 0..1: how grey the picture is
  colour:serialise()   colour:load(data)

The interface is documented in the header of init.luau; this file repeats it for the asset browser.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

paintKit.modules.colour — the painter's own colour: what solvent takes, and how it comes back. This is the stake in a fight where nobody is hurt. Solvent that hits the painter strips colour (1 = whole, 0 = none). At zero the painter is WASHED OUT: slowed, unable to paint or fire, easier to hold, until colour has returned to cfg.colour.washedOut.reviveAt. Colour only returns while nobody is looking, after a delay, and faster on friendly ground. local Colour = require("~.modules.colour") local colour = Colour.new(cfg.colour) local e = colour:wash(0.2) -- solvent landed: { value, delta, washedOut = true when this hit did it } local events = colour:tick(dt, { seen = false, friendly = 0.6 }) -- friendly 0..1: how much this ground is on the painter's side; events: { type = "revived" } when washed out ends colour.value colour:isWashedOut() colour:restore(0.5) -- given back at once (a doctor, a safehouse); may end a wash-out colour:effects() -- { speed, canPaint, canFire, grabWindow, drain } drain 0..1: how grey the picture is colour:serialise() colour:load(data)

new(cfg: any) → any

argtypedescription
cfgany

isWashedOut( ) → boolean

wash(amount: number) → any

Solvent landed. Returns { value, delta, washedOut } (washedOut only on the hit that empties it).

argtypedescription
amountnumber

revive(self: any, events: { any }) → void

argtypedescription
selfany
events{ any }

restore(amount: number) → void

Give colour back at once. Returns the events it caused.

argtypedescription
amountnumber

tick(dt: number, state: any?) → void

Advance. `state.seen`: a pursuer has eyes on the painter; `state.friendly` 0..1. Returns events.

argtypedescription
dtnumber
stateany?

effects( ) → any

What the present colour does to the painter.

serialise( ) → any

load(data: any) → void

argtypedescription
dataany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.