更新色调调色。
This commit is contained in:
parent
c5af60b3de
commit
97a00f08ca
0
color-module/build
Normal file → Executable file
0
color-module/build
Normal file → Executable file
2
src/color_functions/color_module.d.ts
vendored
2
src/color_functions/color_module.d.ts
vendored
|
@ -27,6 +27,7 @@ export function tetradic(color: string): (string)[];
|
||||||
export function triadic(color: string): (string)[];
|
export function triadic(color: string): (string)[];
|
||||||
export function series(color: string, expand_amount: number, step: number): (string)[];
|
export function series(color: string, expand_amount: number, step: number): (string)[];
|
||||||
export function tonal_lighten_series(color: string, expand_amount: number, step: number): (string)[];
|
export function tonal_lighten_series(color: string, expand_amount: number, step: number): (string)[];
|
||||||
|
export function tonal_darken_series(color: string, expand_amount: number, step: number): (string)[];
|
||||||
|
|
||||||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
||||||
|
|
||||||
|
@ -59,6 +60,7 @@ export interface InitOutput {
|
||||||
readonly triadic: (a: number, b: number) => [number, number, number, number];
|
readonly triadic: (a: number, b: number) => [number, number, number, number];
|
||||||
readonly series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
readonly series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
||||||
readonly tonal_lighten_series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
readonly tonal_lighten_series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
||||||
|
readonly tonal_darken_series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
||||||
readonly __wbindgen_export_0: WebAssembly.Table;
|
readonly __wbindgen_export_0: WebAssembly.Table;
|
||||||
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
||||||
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
||||||
|
|
|
@ -690,6 +690,24 @@ export function tonal_lighten_series(color, expand_amount, step) {
|
||||||
return v2;
|
return v2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} color
|
||||||
|
* @param {number} expand_amount
|
||||||
|
* @param {number} step
|
||||||
|
* @returns {(string)[]}
|
||||||
|
*/
|
||||||
|
export function tonal_darken_series(color, expand_amount, step) {
|
||||||
|
const ptr0 = passStringToWasm0(color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
||||||
|
const len0 = WASM_VECTOR_LEN;
|
||||||
|
const ret = wasm.tonal_darken_series(ptr0, len0, expand_amount, step);
|
||||||
|
if (ret[3]) {
|
||||||
|
throw takeFromExternrefTable0(ret[2]);
|
||||||
|
}
|
||||||
|
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
||||||
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
||||||
|
return v2;
|
||||||
|
}
|
||||||
|
|
||||||
async function __wbg_load(module, imports) {
|
async function __wbg_load(module, imports) {
|
||||||
if (typeof Response === 'function' && module instanceof Response) {
|
if (typeof Response === 'function' && module instanceof Response) {
|
||||||
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
||||||
|
|
Binary file not shown.
|
@ -28,6 +28,7 @@ export const tetradic: (a: number, b: number) => [number, number, number, number
|
||||||
export const triadic: (a: number, b: number) => [number, number, number, number];
|
export const triadic: (a: number, b: number) => [number, number, number, number];
|
||||||
export const series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
export const series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
||||||
export const tonal_lighten_series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
export const tonal_lighten_series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
||||||
|
export const tonal_darken_series: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
||||||
export const __wbindgen_export_0: WebAssembly.Table;
|
export const __wbindgen_export_0: WebAssembly.Table;
|
||||||
export const __wbindgen_malloc: (a: number, b: number) => number;
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
||||||
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user