Skip to content

Commit

Permalink
Make colorMin an optional argument
Browse files Browse the repository at this point in the history
When running the example program in the README in TypeScript, I got type-checking errors because it said `colorMin` was required in `renderAmplitudeProgram`.

This change corrects the type definition to make `colorMin` optional.
  • Loading branch information
ekzhang committed Dec 25, 2022
1 parent f2211c7 commit ce567a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Programs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void main() {
scale?: number,
opacity?: number,
colorMax?: number[],
colorMin: number[],
colorMin?: number[],
precision?: GLSLPrecision,
}) {
const { type } = params;
Expand Down

0 comments on commit ce567a6

Please sign in to comment.