kopia lustrzana https://github.com/backface/turtlestitch
adjusted random color for new sprites to HSL model
rodzic
c1ea105c47
commit
54d78c0415
|
@ -53,6 +53,7 @@
|
|||
### 2021-11-09
|
||||
* objects, store: refactored block-migration mechanism
|
||||
* gui: changed display of project name in the IDE to PROJECT (SCENE)
|
||||
* gui: adjusted random color for new sprites to HSL model
|
||||
|
||||
### 2021-11-08
|
||||
* objects: renamed some internal color methods
|
||||
|
|
|
@ -1228,7 +1228,7 @@ IDE_Morph.prototype.createControlBar = function () {
|
|||
' (' + myself.scene.name + ')' : '';
|
||||
name = (myself.getProjectName() || localize('untitled'));
|
||||
txt = new StringMorph(
|
||||
prefix + name + scene + suffix, // +++
|
||||
prefix + name + scene + suffix,
|
||||
14,
|
||||
'sans-serif',
|
||||
true,
|
||||
|
@ -3152,9 +3152,9 @@ IDE_Morph.prototype.addNewSprite = function () {
|
|||
sprite.rerender();
|
||||
|
||||
// randomize sprite properties
|
||||
sprite.setColorComponentHSVA(0, rnd.call(this, 0, 100));
|
||||
sprite.setColorComponentHSVA(1, 100);
|
||||
sprite.setColorComponentHSVA(2, rnd.call(this, 50, 100));
|
||||
sprite.setColorDimension(0, rnd.call(this, 0, 100));
|
||||
sprite.setColorDimension(1, 100);
|
||||
sprite.setColorDimension(2, rnd.call(this, 25, 75));
|
||||
|
||||
sprite.setXPosition(rnd.call(this, -220, 220));
|
||||
sprite.setYPosition(rnd.call(this, -160, 160));
|
||||
|
|
Ładowanie…
Reference in New Issue