Skip to content

Commit

Permalink
Fix "color is touching color" color
Browse files Browse the repository at this point in the history
  • Loading branch information
valadaptive committed Dec 19, 2024
1 parent 88c01db commit 9c6dc4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ export const sensing_touchingcolor = new ProtoBlock({
colorCategory: 'sensing',
});

const __color2 = new Uint8ClampedArray(3);
const __color2 = new Uint8ClampedArray(4);
export const sensing_coloristouchingcolor = new ProtoBlock({
opcode: 'sensing_coloristouchingcolor',
inputs: {
Expand Down
2 changes: 1 addition & 1 deletion src/cast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const toListIndex = (value: string | number | boolean | void, length: num
*/
export const toColor = (
value: string | number | boolean | void,
dst = new Uint8ClampedArray(4),
dst: Uint8ClampedArray = new Uint8ClampedArray(4),
): Uint8ClampedArray => {
let color;
if (typeof value === 'string' && value[0] === '#') {
Expand Down

0 comments on commit 9c6dc4d

Please sign in to comment.