mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Change legacy pen color block's behavior
This commit is contained in:
parent
c449f14280
commit
7863731bb4
1 changed files with 3 additions and 2 deletions
|
@ -671,11 +671,12 @@ class Scratch3PenBlocks {
|
|||
* @param {object} util - utility object provided by the runtime.
|
||||
*/
|
||||
setPenHueToNumber (args, util) {
|
||||
const penState = this._getPenState(util.target);
|
||||
let penState = this._getPenState(util.target);
|
||||
const hueValue = Cast.toNumber(args.HUE);
|
||||
const colorValue = hueValue / 2;
|
||||
this._setOrChangeColorParam(ColorParam.COLOR, colorValue, penState, false);
|
||||
|
||||
penState = this._getPenState(util.target);
|
||||
this._setOrChangeColorParam(ColorParam.TRANSPARENCY, 0, penState, false);
|
||||
this._legacyUpdatePenColor(penState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue