From 3cb16c2f943edabed525d338e8e570f4a9d85519 Mon Sep 17 00:00:00 2001 From: AgustinVallejo Date: Wed, 2 Oct 2024 16:02:16 -0500 Subject: [PATCH] Adding new experiment state, see https://github.com/phetsims/quantum-measurement/issues/39 --- js/coins/view/CoinSetPixelRepresentation.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/coins/view/CoinSetPixelRepresentation.ts b/js/coins/view/CoinSetPixelRepresentation.ts index 8654efa..653738f 100644 --- a/js/coins/view/CoinSetPixelRepresentation.ts +++ b/js/coins/view/CoinSetPixelRepresentation.ts @@ -147,6 +147,11 @@ export default class CoinSetPixelRepresentation extends CanvasNode { return value === 1 ? 'grey' : 'transparent'; }; break; + case 'measuredAndHidden': + getColor = ( value: number ) => { + return value === 1 ? 'grey' : 'transparent'; + }; + break; default: getColor = () => { return 'red';