mirror of
https://github.com/bspeice/speice.io
synced 2024-12-23 00:58:09 -05:00
96 lines
3.2 KiB
TypeScript
96 lines
3.2 KiB
TypeScript
|
/**
|
||
|
* Parameters taken from the reference .flame file,
|
||
|
* translated into something that's easier to work with.
|
||
|
*/
|
||
|
|
||
|
import {Coefs, Transform} from "./types";
|
||
|
import { julia, linear, pdj, popcorn } from "./variation";
|
||
|
|
||
|
export const identityCoefs: Coefs = {
|
||
|
a: 1, b: 0, c: 0,
|
||
|
d: 0, e: 1, f: 0,
|
||
|
}
|
||
|
|
||
|
export const xform1Weight = 0.56453495;
|
||
|
export const xform1: Transform = {
|
||
|
coefs: {
|
||
|
a: -1.381068, b: -1.381068, c: 0,
|
||
|
d: 1.381068, e: -1.381068, f: 0,
|
||
|
},
|
||
|
coefsPost: identityCoefs,
|
||
|
variations: [[1, julia]],
|
||
|
color: 0
|
||
|
}
|
||
|
|
||
|
const xform2Weight = 0.013135;
|
||
|
export const xform2: Transform = {
|
||
|
coefs: {
|
||
|
a: 0.031393, b: 0.031367, c: 0,
|
||
|
d: -0.031367, e: 0.031393, f: 0,
|
||
|
},
|
||
|
coefsPost: {
|
||
|
a: 1, b: 0, c: 0.241352,
|
||
|
d: 0, e: 1, f: 0.271521,
|
||
|
},
|
||
|
variations: [
|
||
|
[1, linear],
|
||
|
[1, popcorn]
|
||
|
],
|
||
|
color: 0.844
|
||
|
}
|
||
|
|
||
|
export const xform3Weight = 0.42233;
|
||
|
export const xform3: Transform = {
|
||
|
coefs: {
|
||
|
a: 1.51523, b: -3.048677, c: 0.724135,
|
||
|
d: 0.740356, e: -1.455964, f: -0.362059,
|
||
|
},
|
||
|
coefsPost: identityCoefs,
|
||
|
variations: [[1, pdj(1.09358, 2.13048, 2.54127, 2.37267)]],
|
||
|
color: 0.349
|
||
|
}
|
||
|
|
||
|
export const xformFinal: Transform = {
|
||
|
coefs: {
|
||
|
a: 2, b: 0, c: 0,
|
||
|
d: 0, e: 2, f: 0
|
||
|
},
|
||
|
coefsPost: identityCoefs,
|
||
|
variations: [[1, julia]],
|
||
|
color: 0
|
||
|
}
|
||
|
|
||
|
export const palette =
|
||
|
"7E3037762C45722B496E2A4E6A2950672853652754632656" +
|
||
|
"5C265C5724595322574D2155482153462050451F4E441E4D" +
|
||
|
"431E4C3F1E473F1E453F1E433F1E3F3F1E3B3E1E393E1E37" +
|
||
|
"421D36431C38451C3A471B3B491B3C4A1A3C4B1A3D4D1A3E" +
|
||
|
"4F19405318435517445817465A16475D15495E154960154A" +
|
||
|
"65134E6812506B12526E1153711055720F55740F55770E57" +
|
||
|
"7A0E59810C58840B58880A588B09588F0858910756930755" +
|
||
|
"9A05539D0451A1034FA5024BA90147AA0046AC0045B00242" +
|
||
|
"B4043DBB0634BE082EC20A29C30B27C50C26C90F1DCC1116" +
|
||
|
"D32110D6280EDA300CDC380ADF4109E04508E24A08E45106" +
|
||
|
"E75704EA6402EC6B01EE7300EE7600EF7A00F07E00F18300" +
|
||
|
"F29000F29300F39600F39900F39C00F3A000F3A100F3A201" +
|
||
|
"F2A502F1A805F0A906EFAA08EEA909EEA80AEDA60CEBA50F" +
|
||
|
"E5A313E1A113DD9F13DB9E13D99D14D49C15D09815CC9518" +
|
||
|
"C79318BE8B1ABB891BB9871DB4811FB07D1FAB7621A67123" +
|
||
|
"9C6227975C289256299053298E502A89482C853F2D803A2E" +
|
||
|
"7E3037762C45742B47722B496E2A4E6A2951672853632656" +
|
||
|
"5C265C5724595322575022564E2255482153452050451F4E" +
|
||
|
"431E4C3F1E473E1D463D1D453F1E43411E413F1E3B3E1E37" +
|
||
|
"421D36421D38431D3B451C3A471B3A491B3C4B1A3D4D1A3E" +
|
||
|
"4F19405318435418445518455817465A16475D154960154A" +
|
||
|
"65134E66124F6812506B12526E1153711055740F55770E57" +
|
||
|
"7A0E597E0D57810C58840B58880A588B09588F0858930755" +
|
||
|
"9A05539C04529E0452A1034FA5024BA90147AC0045B00242" +
|
||
|
"B4043DB7053ABB0634BE0831C20A29C50C26C90F1DCC1116" +
|
||
|
"D01711D32110D72A0EDA300CDD390ADF4109E24A08E45106" +
|
||
|
"E75704E95F03EA6402EC6C01EE7300EF7A00F07E00F18300" +
|
||
|
"F28900F29000F39300F39600F39C00F3A000F3A100F3A201" +
|
||
|
"F2A502F2A503F1A805F0A807EFAA08EEA80AEDA60CEBA50F" +
|
||
|
"E9A411E5A313E1A113DD9F13D99D14D49C15D09815CC9518" +
|
||
|
"C79318C38F1ABE8B1AB9871DB4811FB07D1FAB7621A67123" +
|
||
|
"A16A249C6227975E289256298E502A89482C853F2D803A2E"
|