@@ -6712,7 +6712,7 @@ const MUNSELL = [
67126712 "#ffffff"
67136713] ;
67146714
6715- let interpColor = ( hex1 , hex2 , p ) => {
6715+ const interpColor = ( hex1 , hex2 , p ) => {
67166716 if ( hex1 === undefined && hex2 === undefined ) {
67176717 null ;
67186718 } else if ( hex1 === undefined ) {
@@ -6739,7 +6739,7 @@ let interpColor = (hex1, hex2, p) => {
67396739
67406740 return createjs . Graphics . getRGB ( nr , ng , nb , 1.0 ) ;
67416741 }
6742- }
6742+ } ;
67436743
67446744let getMunsellColor = ( hue , value , chroma ) => {
67456745 // hue (aka color) 0-100 -> 0-39
@@ -6778,7 +6778,7 @@ let getMunsellColor = (hue, value, chroma) => {
67786778 }
67796779
67806780 return interpColor ( MUNSELL [ h * 165 + v1 * 15 + c ] , MUNSELL [ h * 165 + v2 * 15 + c ] , p ) ;
6781- }
6781+ } ;
67826782
67836783let getcolor = ( color ) => {
67846784 let h1 = Math . floor ( color / 2.5 ) ;
@@ -6798,7 +6798,7 @@ let getcolor = (color) => {
67986798 const v = Math . floor ( COLORS40 [ h1 ] [ 0 ] * p + COLORS40 [ h2 ] [ 0 ] * ( 1 - p ) ) ;
67996799 const c = Math . floor ( COLORS40 [ h1 ] [ 1 ] * p + COLORS40 [ h2 ] [ 1 ] * ( 1 - p ) ) ;
68006800 return [ v * 10 , c * 100 / 28 , interpColor ( COLORS40 [ h1 ] [ 2 ] , COLORS40 [ h2 ] [ 2 ] , p ) ] ;
6801- }
6801+ } ;
68026802
68036803/**
68046804 * Searches for nearest match to high chroma colors, scaled from 0-100
@@ -6822,7 +6822,7 @@ let searchColors = (r, g, b) => {
68226822 }
68236823
68246824 return nearestColor ;
6825- }
6825+ } ;
68266826
68276827// /**
68286828// * @deprecated
0 commit comments