kopia lustrzana https://github.com/backface/turtlestitch
reverted to HSV as default pen color model
rodzic
b03157881c
commit
482f592dc1
|
@ -26,7 +26,6 @@
|
|||
* codification and js-func blocks don't appear in search results unless enabled
|
||||
* migrated SEND blocks to be BROADCAST TO blocks
|
||||
* "when I receive 'any message'" hat scripts are threadsafe (uninterruptable by other messages)
|
||||
* changed the default color model for pen/background colors and graphic effects from HSV to HSL
|
||||
* changed the scale of the graphics color effect from 0-200 to 0-100
|
||||
* new Birdbrain Technology extensions for Finch and Hummingbird, thanks, Kristina and Bambi!
|
||||
* retired Leap Motion library
|
||||
|
@ -57,6 +56,7 @@
|
|||
|
||||
### 2021-11-12
|
||||
* store: fixed importing custom categories from libraries, thanks, Eckart, for reporting this!
|
||||
* gui, objects, scenes, store: reverted to HSV as default pen color model
|
||||
|
||||
### 2021-11-11
|
||||
* German translation update, changed %hsva -> %clrdim
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
<script src="src/widgets.js?version=2021-17-09"></script>
|
||||
<script src="src/blocks.js?version=2021-11-09"></script>
|
||||
<script src="src/threads.js?version=2021-11-11"></script>
|
||||
<script src="src/objects.js?version=2021-11-10"></script>
|
||||
<script src="src/scenes.js?version=2021-11-11"></script>
|
||||
<script src="src/gui.js?version=2021-11-11"></script>
|
||||
<script src="src/objects.js?version=2021-11-12"></script>
|
||||
<script src="src/scenes.js?version=2021-11-12"></script>
|
||||
<script src="src/gui.js?version=2021-11-12"></script>
|
||||
<script src="src/paint.js?version=2021-07-05"></script>
|
||||
<script src="src/lists.js?version=2021-07-19"></script>
|
||||
<script src="src/byob.js?version=2021-11-09"></script>
|
||||
|
|
12
src/gui.js
12
src/gui.js
|
@ -86,7 +86,7 @@ BlockVisibilityDialogMorph, ThreadManager*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2021-November-11';
|
||||
modules.gui = '2021-November-12';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -4234,12 +4234,12 @@ IDE_Morph.prototype.settingsMenu = function () {
|
|||
);
|
||||
|
||||
addPreference(
|
||||
'HSV pen color model',
|
||||
'HSL pen color model',
|
||||
() => SpriteMorph.prototype.penColorModel =
|
||||
SpriteMorph.prototype.penColorModel === 'hsv' ? 'hsl' : 'hsv',
|
||||
SpriteMorph.prototype.penColorModel === 'hsv',
|
||||
'uncheck to switch pen colors\nand graphic effects\nto HSL (default)',
|
||||
'check to switch pen colors\nand graphic effects\nfrom HSL to HSV',
|
||||
SpriteMorph.prototype.penColorModel === 'hsl' ? 'hsv' : 'hsl',
|
||||
SpriteMorph.prototype.penColorModel === 'hsl',
|
||||
'uncheck to switch pen colors\nand graphic effects\nto HSV',
|
||||
'check to switch pen colors\nand graphic effects\nfrom to HSL',
|
||||
false
|
||||
);
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ BlockVisibilityDialogMorph*/
|
|||
|
||||
/*jshint esversion: 6*/
|
||||
|
||||
modules.objects = '2021-November-10';
|
||||
modules.objects = '2021-November-12';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -185,7 +185,7 @@ SpriteMorph.prototype.enableNesting = true;
|
|||
SpriteMorph.prototype.enableFirstClass = true;
|
||||
SpriteMorph.prototype.showingExtensions = false;
|
||||
SpriteMorph.prototype.useFlatLineEnds = false;
|
||||
SpriteMorph.prototype.penColorModel = 'hsl'; // or 'hsv'
|
||||
SpriteMorph.prototype.penColorModel = 'hsv'; // or 'hsl'
|
||||
SpriteMorph.prototype.highlightColor = new Color(250, 200, 130);
|
||||
SpriteMorph.prototype.highlightBorder = 8;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ normalizeCanvas, SnapSerializer, Costume, ThreadManager*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.scenes = '2021-November-11';
|
||||
modules.scenes = '2021-November-12';
|
||||
|
||||
// Projecct /////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -140,7 +140,7 @@ function Scene(aStageMorph) {
|
|||
this.enableLiveCoding = false;
|
||||
this.enableHyperOps = true;
|
||||
this.disableClickToRun = false;
|
||||
this.penColorModel = 'hsl'; // can also bei 'hsv'
|
||||
this.penColorModel = 'hsv'; // can also bei 'hsl'
|
||||
|
||||
// for deserializing - do not persist
|
||||
this.spritesDict = {};
|
||||
|
|
|
@ -381,8 +381,8 @@ SnapSerializer.prototype.loadScene = function (xmlNode, remixID) {
|
|||
scene.unifiedPalette = model.scene.attributes.palette === 'single';
|
||||
scene.showCategories = model.scene.attributes.categories !== 'false';
|
||||
scene.disableClickToRun = model.scene.attributes.clickrun === 'false';
|
||||
scene.penColorModel = model.scene.attributes.colormodel === 'hsv' ?
|
||||
'hsv' : 'hsl';
|
||||
scene.penColorModel = model.scene.attributes.colormodel === 'hsl' ?
|
||||
'hsl' : 'hsv';
|
||||
model.notes = model.scene.childNamed('notes');
|
||||
if (model.notes) {
|
||||
scene.notes = model.notes.contents;
|
||||
|
@ -1753,7 +1753,7 @@ Scene.prototype.toXML = function (serializer) {
|
|||
this.unifiedPalette && !this.showCategories ?
|
||||
' categories="false"' : '',
|
||||
this.disableClickToRun ? ' clickrun="false"' : '',
|
||||
this.penColorModel === 'hsv' ? ' colormodel="hsv"' : '',
|
||||
this.penColorModel === 'hsl' ? ' colormodel="hsl"' : '',
|
||||
this.notes || '',
|
||||
serializer.paletteToXML(this.customCategories),
|
||||
Object.keys(this.hiddenPrimitives).reduce(
|
||||
|
|
Ładowanie…
Reference in New Issue