Types-for-Adobe icon indicating copy to clipboard operation
Types-for-Adobe copied to clipboard

Multiply array of numbers by scalar

Open bryab opened this issue 7 years ago • 3 comments

Extendscript allows you to multiply an array of numbers by a scalar. Typescript doesn't allow this.

var v = [0,.5,1] * 255;
v == [0,127.5, 255];

bryab avatar Aug 03 '18 14:08 bryab

I know this isn't really a solvable issue, but thought I'd share it. Extendscript is certainly a strange edge case for Typescript.

bryab avatar Aug 03 '18 14:08 bryab

ok

pravdomil avatar Aug 03 '18 16:08 pravdomil

open pr

pravdomil avatar Jun 24 '20 10:06 pravdomil