-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ inspired by Squeak | |
written by Jens Mönig | ||
[email protected] | ||
|
||
Copyright (C) 2010-2023 by Jens Mönig | ||
Copyright (C) 2010-2024 by Jens Mönig | ||
|
||
Morphic.js is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
written by Jens Mönig | ||
[email protected] | ||
Copyright (C) 2010-2023 by Jens Mönig | ||
Copyright (C) 2010-2024 by Jens Mönig | ||
This file is part of Snap!. | ||
|
@@ -1306,7 +1306,7 @@ | |
|
||
/*jshint esversion: 11, bitwise: false*/ | ||
|
||
var morphicVersion = '2023-November-07'; | ||
var morphicVersion = '2024-January-22'; | ||
var modules = {}; // keep track of additional loaded modules | ||
var useBlurredShadows = true; | ||
|
||
|
@@ -2130,8 +2130,8 @@ Color.prototype.toRGBstring = function () { | |
|
||
Color.fromString = function (aString) { | ||
// I parse rgb/rgba strings into a Color object | ||
var components = aString.split(/[\(),]/).slice(1,5); | ||
return new Color(components[0], components[1], components[2], components[3]); | ||
var channels = aString.split(/[\(),]/).slice(0,4); | ||
return new Color(+channels[0], +channels[1], +channels[2], +channels[3]); | ||
}; | ||
|
||
// Color copying: | ||
|