Skip to content

Commit

Permalink
Add Tween behavior to animate object position/angle/properties (#980)
Browse files Browse the repository at this point in the history
* Implementation based on Shifty.js
* Add examples
  • Loading branch information
Wend1go authored and 4ian committed Apr 3, 2019
1 parent 20a62ef commit 1c7d11a
Show file tree
Hide file tree
Showing 42 changed files with 18,349 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions Extensions/TextObject/textruntimeobject.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ gdjs.TextRuntimeObject.prototype.setColor = function(str) {
this._renderer.updateStyle();
};

/**
* Get the text color.
* @return {String} The color as a "R;G;B" string, for example: "255;0;0"
*/
gdjs.TextRuntimeObject.prototype.getColor = function(str) {
return this._color[0] + ";" + this._color[1] + ";" + this._color[2];
};

/**
* Return true if word wrapping is enabled for the text.
Expand Down
Loading

0 comments on commit 1c7d11a

Please sign in to comment.