feat:add Input

This commit is contained in:
pengfei.zhou
2019-12-06 14:54:33 +08:00
parent 4570bf8722
commit cac0909d8c
3 changed files with 83 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ export class Color implements Modeling {
}
alpha(v: number) {
v = v * 255
return new Color((this._value & 0xffffff) | ((v & 0xff) << 24))
}