Skip to content

Commit

Permalink
move MassTag to its own file, phetsims/buoyancy#102
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Mar 4, 2024
1 parent 1099513 commit 33eb5b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/util/Color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1054,11 +1054,11 @@ export type ColorState = {
a: number;
};

Color.ColorIO = new IOType( 'ColorIO', {
Color.ColorIO = new IOType<Color, ColorState>( 'ColorIO', {
valueType: Color,
documentation: 'A color, with rgba',
toStateObject: ( color: Color ) => color.toStateObject(),
fromStateObject: ( stateObject: { r: number; g: number; b: number; a: number } ) => new Color( stateObject.r, stateObject.g, stateObject.b, stateObject.a ),
toStateObject: color => color.toStateObject(),
fromStateObject: stateObject => new Color( stateObject.r, stateObject.g, stateObject.b, stateObject.a ),
stateSchema: {
r: NumberIO,
g: NumberIO,
Expand Down

0 comments on commit 33eb5b1

Please sign in to comment.