ComfyUI Node
BSZ Pixelbuster Help
A ComfyUI node in beinsezii/image with 1 input and 0 outputs.
BSZ Pixelbuster Help
◄helpValid lines:
* {target} {operation} {source}
* {space}
* if {source} {comparison} {source} {line}
* :{label}
* jmp {label} or goto {label}
* swap {target} {target}
Quick Example:
r ** 2
g / b
lch
h sqrt h
Target:
Where to write the operation result to.
* Channel (channel letters like 'r' 'g' 'b' 'a', or c1 ... c4),
* Variable (v1, v2...v9) or (e1, e2...9)
Source:
Where to source operation data from
* any valid Target
* any constant numeric value, eg '3.14'
* 'pi'
* 'e'
* 'rand' - random val between 0.0 -> 1.0
* 'col' - pixel X
* 'row' - pixel Y
* 'width' - width of image
* 'height' - height of image
* 'xnorm' - pixel X on scale of 0.0 -> 1.0
* 'ynorm' - pixel Y on scale of 0.0 -> 1.0
Operation:
Operations that take 2 values will source from target and source in order
Eg: 'r log 2' translates to 'r = r.log(2)'
* '+=' or '+' or 'add' => Add
* '-=' or '-' or 'sub' => Sub
* '*=' or '*' or 'mul' => Mul
* '/=' or '/' or 'div' => Div
* '%=' or '%' or 'mod' => Mod
* '**' or '^' or 'pow' => Pow
* '=' or 'set' => Set
* abs acos acosh asin asinh atan atan2 atanh cbrt ceil copysign cos cosh
* degrees diveuclid exp exp2 expm1 floor fract hypot ln ln1p log log10 log2
* max min radians recip remeuclid round signum sin sinh sqrt tan tanh trunc
* invert - a invert b == a = b - a
Comparison:
* '==' or 'eq'
* '!=' or '!' or 'neq'
* '>' or 'gt'
* '<' or 'lt'
* '>=' or 'gteq'
* '<=' or 'lteq'
Notes:
Lines beginning with '#' are ignored
Lines ending with '\' are continued to next
';' counts as a linebreak anywhere in code
There's a hard limit of 99 jumps per pixel as it can't detect loops
v1 through v9 start at 0.0 every pixel
e1 through e9 are 'external variables' that can be assigned starting values
Useful for creating things like UI control sliders►
Categorybeinsezii/image
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| helpopt | STRING | Valid lines: * {target} {operation} {source} * {space} * if {source} {comparison} {source} {line} * :{label} * jmp {label} or goto {label} * swap {target} {target} Quick Example: r ** 2 g / b lch h sqrt h Target: Where to write the operation result to. * Channel (channel letters like 'r' 'g' 'b' 'a', or c1 ... c4), * Variable (v1, v2...v9) or (e1, e2...9) Source: Where to source operation data from * any valid Target * any constant numeric value, eg '3.14' * 'pi' * 'e' * 'rand' - random val between 0.0 -> 1.0 * 'col' - pixel X * 'row' - pixel Y * 'width' - width of image * 'height' - height of image * 'xnorm' - pixel X on scale of 0.0 -> 1.0 * 'ynorm' - pixel Y on scale of 0.0 -> 1.0 Operation: Operations that take 2 values will source from target and source in order Eg: 'r log 2' translates to 'r = r.log(2)' * '+=' or '+' or 'add' => Add * '-=' or '-' or 'sub' => Sub * '*=' or '*' or 'mul' => Mul * '/=' or '/' or 'div' => Div * '%=' or '%' or 'mod' => Mod * '**' or '^' or 'pow' => Pow * '=' or 'set' => Set * abs acos acosh asin asinh atan atan2 atanh cbrt ceil copysign cos cosh * degrees diveuclid exp exp2 expm1 floor fract hypot ln ln1p log log10 log2 * max min radians recip remeuclid round signum sin sinh sqrt tan tanh trunc * invert - a invert b == a = b - a Comparison: * '==' or 'eq' * '!=' or '!' or 'neq' * '>' or 'gt' * '<' or 'lt' * '>=' or 'gteq' * '<=' or 'lteq' Notes: Lines beginning with '#' are ignored Lines ending with '\' are continued to next ';' counts as a linebreak anywhere in code There's a hard limit of 99 jumps per pixel as it can't detect loops v1 through v9 start at 0.0 every pixel e1 through e9 are 'external variables' that can be assigned starting values Useful for creating things like UI control sliders | — |
Outputs (0)
No outputs