mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 16:48:10 -05:00
50 lines
818 B
TypeScript
50 lines
818 B
TypeScript
import { RenderParams } from "./0-utility.js";
|
|
import { RendererFlame, Transform, linear } from "./2a-baseline.js";
|
|
|
|
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 const paramsGasketFlame: RenderParams = {
|
|
quality: 1,
|
|
renderer: (size) => new RendererFlame(size, transformGasket),
|
|
};
|