From 224e9c54f0514c309ea23e709ab6c99d813ec7c0 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 13 Feb 2018 10:44:46 -0800 Subject: [PATCH] color dropdown for color sensor (#324) --- libs/color-sensor/color.ts | 28 ++++++++++------ libs/color-sensor/colors.jres | 30 ++++++++++++++++++ libs/color-sensor/jres/colors/black-icon.png | Bin 0 -> 951 bytes libs/color-sensor/jres/colors/blue-icon.png | Bin 0 -> 951 bytes libs/color-sensor/jres/colors/brown-icon.png | Bin 0 -> 951 bytes libs/color-sensor/jres/colors/green-icon.png | Bin 0 -> 951 bytes libs/color-sensor/jres/colors/none-icon.png | Bin 0 -> 1225 bytes libs/color-sensor/jres/colors/red-icon.png | Bin 0 -> 951 bytes libs/color-sensor/jres/colors/white-icon.png | Bin 0 -> 951 bytes libs/color-sensor/jres/colors/yellow-icon.png | Bin 0 -> 951 bytes libs/color-sensor/pxt.json | 1 + 11 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 libs/color-sensor/colors.jres create mode 100644 libs/color-sensor/jres/colors/black-icon.png create mode 100644 libs/color-sensor/jres/colors/blue-icon.png create mode 100644 libs/color-sensor/jres/colors/brown-icon.png create mode 100644 libs/color-sensor/jres/colors/green-icon.png create mode 100644 libs/color-sensor/jres/colors/none-icon.png create mode 100644 libs/color-sensor/jres/colors/red-icon.png create mode 100644 libs/color-sensor/jres/colors/white-icon.png create mode 100644 libs/color-sensor/jres/colors/yellow-icon.png diff --git a/libs/color-sensor/color.ts b/libs/color-sensor/color.ts index 1431a131..0a3c027c 100644 --- a/libs/color-sensor/color.ts +++ b/libs/color-sensor/color.ts @@ -19,22 +19,22 @@ enum LightIntensityMode { } const enum ColorSensorColor { - //% block="none" + //% block="none" jres=colors.none None, - //% block="black" + //% block="black" jres=colors.black Black, - //% block="blue" + //% block="blue" jres=colors.blue Blue, - //% block="green" + //% block="green" jres=colors.green Green, - //% block="yellow" + //% block="yellow" jres=colors.yellow Yellow, - //% block="red" + //% block="red" jres=colors.red Red, - //% block="white" + //% block="white" jres=colors.white White, - //% block="brown" - Brown, + //% block="brown" jres=colors.brown + Brown } enum LightCondition { @@ -117,6 +117,11 @@ namespace sensors { //% sensor.fieldEditor="ports" //% weight=100 blockGap=12 //% group="Color Sensor" + //% color.fieldEditor="gridpicker" + //% color.fieldOptions.columns=4 + //% color.fieldOptions.tooltips=true + //% color.fieldOptions.hideRect=true + //% color.fieldOptions.width=268 onColorDetected(color: ColorSensorColor, handler: () => void) { this.setMode(ColorSensorMode.Color) const v = this._colorEventValue(color); @@ -137,6 +142,11 @@ namespace sensors { //% sensor.fieldEditor="ports" //% weight=99 blockGap=8 //% group="Color Sensor" + //% color.fieldEditor="gridpicker" + //% color.fieldOptions.columns=4 + //% color.fieldOptions.tooltips=true + //% color.fieldOptions.hideRect=true + //% color.fieldOptions.width=268 pauseForColor(color: ColorSensorColor) { this.setMode(ColorSensorMode.Color); if (this.color() != color) { diff --git a/libs/color-sensor/colors.jres b/libs/color-sensor/colors.jres new file mode 100644 index 00000000..6758cc16 --- /dev/null +++ b/libs/color-sensor/colors.jres @@ -0,0 +1,30 @@ +{ + "*": { + "namespace": "colors", + "dataEncoding": "base64" + }, + "black": { + "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAszD0iAAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAALklEQVRYR+3MQQ0AIAADMfybHjkN/EgroGePBIIIBBEIIhBEIIhAEIEggg+C7QKnC/DiLFihnAAAAABJRU5ErkJggg==" + }, + "red": { + "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IAr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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH8gKTMAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAAG0lEQVRYR+3BgQAAAADDoPlT3+AEVQAAAABXDRBAAAFce08FAAAAAElFTkSuQmCC" + } +} \ No newline at end of file diff --git a/libs/color-sensor/jres/colors/black-icon.png b/libs/color-sensor/jres/colors/black-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1153ccb5289d42c0f95a756fb505d69aeb443f1a GIT binary patch literal 951 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I3?%1nZ+ru!7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;tCWW1*0J_VnblF!Iuu8=Q#^JB8wRq_zr_G!;cD?Q-O-4JzX3_BHZ5|Yy^ej;RQc~?>}G( c1+l|<1soU{W2*gunT>(L)78&qol`;+0D`zMS^xk5 literal 0 HcmV?d00001 diff --git a/libs/color-sensor/jres/colors/blue-icon.png b/libs/color-sensor/jres/colors/blue-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a43b0a12efd9b4bbc23d42130b2c897139478a3c GIT binary patch literal 951 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I3?%1nZ+ru!7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;>y7AA1E~nMnhm^hQM*-tSF$*ISV`@iy0XB4ude`@%$AjKtah8 z*NBqf{Irtt#G+J&g2c?c61}|C5(N`I13e?dj|!Pnfr_L(T^vIq+}|E-1O?#X1wVuD fKVS(3vBP-<92gj5s{MhPje)__)z4*}Q$iB}sQ@sz literal 0 HcmV?d00001 diff --git a/libs/color-sensor/jres/colors/brown-icon.png b/libs/color-sensor/jres/colors/brown-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..81f05579c3a992dd98bde703f700e5b97dfc9253 GIT binary patch literal 951 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I3?%1nZ+ru!7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;(Bv;HBf34jE2C-41pV~Rd)b=&RO6QSEaj?;r{kuBPak5FZdaJ f{{c%Vh#k%=;K0BbQ|%ATYzz#Zu6{1-oD!Mk44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;>s`+C^HI1Ltuo4K=`s{Z-HLtEbxddW?J zaRrKxg3%Bdu_3V8;7bPs10zF8kYDiskqsDvzq6|X69Q*}M`SSr1K%MKW)#)%Y5)pK zmbgZg1m~xflqVLYG880c=9TE>rIsj|=o#o48GcmAoC;K==jq}Y65;;#j3Y0D0t2(* zpV@Mjynj5j7o_*IG;y#9awrM7D0DaoG%7UlH@#(A&i&z$PQ=1FK%ESpu6{1-oD!M< D`6n~f literal 0 HcmV?d00001 diff --git a/libs/color-sensor/jres/colors/red-icon.png b/libs/color-sensor/jres/colors/red-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..62e64ff4e3d7812a87f301121543bb20721e2ec0 GIT binary patch literal 951 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I3?%1nZ+ru!7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;`$#bF$zXQV5EkCc<0Pepx-$QJR*x382Ao@Fyrz36)8YL$r9Iy zlHmNblJdl&REC1Y%)Ao4ywnl}6FmbxBg2mhnNxv^q&;06Ln7SY9&7{!;o${8gYQ3J d0U5~<&MV-+z!+2Q56o-~44$rjF6*2UngEq4Fo*yE literal 0 HcmV?d00001 diff --git a/libs/color-sensor/jres/colors/white-icon.png b/libs/color-sensor/jres/colors/white-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a3f1c7e087ce49f543db0662600acaa81c12d13d GIT binary patch literal 951 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I3?%1nZ+ru!7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;`;ypf1uPT7!84u83NqO+aCgb&RO6QSEaj?;r{kuBPak5FZdaJ f{{c%Vh#k%=;K0BbQ|%ATYzz#Zu6{1-oD!Mk44ofy`glX(f`u%tWsIx;Y9 z?C1WI$jZRL%n;xc;`;wTP-Ya2hQJ67fqDf^W1!bL3p^r=85sBugD~Uq{1qucLCF%= zh?3y^w370~qEv>0#LT=By}Z;C1rt33JtM=93Yk-ZiljYV977`9-yUoPh2Y@@KZEZ- eU