mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix type annotation in pixi-filters-tools.js
Don't show in changelog
This commit is contained in:
@@ -70,7 +70,7 @@ gdjs.PixiFiltersTools.registerFilterCreator = function (
|
||||
|
||||
/**
|
||||
* Convert a string RGB color ("rrr;ggg;bbb") or a hex string (#rrggbb) to a hex number.
|
||||
* @param {string} The color as a RGB string or hex string
|
||||
* @param {string} value The color as a RGB string or hex string
|
||||
* @returns {number}
|
||||
*/
|
||||
gdjs.PixiFiltersTools.rgbOrHexToHexNumber = function (value) {
|
||||
@@ -81,7 +81,7 @@ gdjs.PixiFiltersTools.rgbOrHexToHexNumber = function (value) {
|
||||
parseInt(splitValue[1], 0),
|
||||
parseInt(splitValue[2], 0)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return parseInt(value.replace('#', '0x'), 16);
|
||||
};
|
||||
|
Reference in New Issue
Block a user