2023-07-21 23:26:54 -04:00
|
|
|
import { RenderParams } from "./0-utility.js";
|
|
|
|
import { RendererFlame, Transform, linear } from "./2a-baseline.js";
|
2023-07-20 19:55:26 -04:00
|
|
|
|
|
|
|
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],
|
|
|
|
];
|
|
|
|
|
2023-07-21 23:26:54 -04:00
|
|
|
export const paramsGasketFlame: RenderParams = {
|
|
|
|
quality: 1,
|
|
|
|
renderer: (size) => new RendererFlame(size, transformGasket),
|
|
|
|
};
|