mirror of
https://github.com/bspeice/speice.io
synced 2024-12-23 00:58:09 -05:00
49 lines
798 B
TypeScript
49 lines
798 B
TypeScript
|
import { RendererFlame, Transform, linear } from "./2a-variations";
|
||
|
import { RendererLogarithmic } from "./3c-logarithmic";
|
||
|
|
||
|
export const transformGasket1 = new Transform(
|
||
|
{
|
||
|
a: 0.5,
|
||
|
b: 0,
|
||
|
c: 0,
|
||
|
d: 0,
|
||
|
e: 0.5,
|
||
|
f: 0,
|
||
|
},
|
||
|
[[1, linear]]
|
||
|
);
|
||
|
|
||
|
export const transformGasket2 = new Transform(
|
||
|
{
|
||
|
a: 0.5,
|
||
|
b: 0,
|
||
|
c: 0.5,
|
||
|
d: 0,
|
||
|
e: 0.5,
|
||
|
f: 0,
|
||
|
},
|
||
|
[[1, linear]]
|
||
|
);
|
||
|
|
||
|
export const transformGasket3 = new Transform(
|
||
|
{
|
||
|
a: 0.5,
|
||
|
b: 0,
|
||
|
c: 0,
|
||
|
d: 0,
|
||
|
e: 0.5,
|
||
|
f: 0.5,
|
||
|
},
|
||
|
[[1, linear]]
|
||
|
);
|
||
|
|
||
|
export const transformGasket: [number, Transform][] = [
|
||
|
[1 / 3, transformGasket1],
|
||
|
[1 / 3, transformGasket2],
|
||
|
[1 / 3, transformGasket3],
|
||
|
];
|
||
|
|
||
|
export function buildGasketFlame(size: number) {
|
||
|
return new RendererFlame(size, transformGasket);
|
||
|
}
|