My my List of hexadecimal color codes does not work systematically?

bvrose24 shared this question 6 months ago
Answered

I pasted in the input line of a functioning applet the following :

HexaColorCODE = {#BCD4E6, #0000FF, #FF00FF, #00FF00, #800080, #FF0000, #C0C0C0, #43B7BA, #7931DF, #EABE83, #8AFB17, #C85A17, #F76541, #E41B17, #00FFFF, #57FEFF, #B7AD59, #F43EFF, #F88017, #E41B17, #E18B6B, #8BB381, #3B9C9C, #F52887, #3BB9FF, #1589FF, #D4A017, #EDDA74, #B1FB17, #ADA96E, #87F717, #ADDFFF, #E77471, #A8A8A8, #FAAFBA, #F9966B, #3EA99F, #82CAFA, #728FCE, #41A317, #FF00FF, #B048B5, #48CCCD, #CA226B, #F87A17, #F63817, #E57DED, #D16587, #B38481, #F63526, #F88158, #EE9A4D, #6698FF, #4AA02C, #D8AF79, #D2B9D3, #F75431, #43C6DB, #8D38C9, #52D017}

which works in attached file. In the other applet, where I am trying to use this same color list, why do I get the message "Please check your input" when I past my hexadecimal color codes list?

Is the list too long that is causing a memory problem on my computer?

Comments (1)

photo
1

The mystery is clarified,

Since I could not copy the list from my applet, the editor would not let me, so I copied the list from the Construction protocole which has suppressed the cotation marque.

In order to enter this list in the applet it has to have the following format: (

HexaColorCODE = {"#BCD4E6", "#0000FF", "#FF00FF", "#00FF00", "#800080", "#FF0000", "#C0C0C0", "#43B7BA", "#7931DF", "#EABE83", "#8AFB17", "#C85A17", "#F76541", "#E41B17", "#00FFFF", "#57FEFF", "#B7AD59", "#F43EFF", "#F88017", "#E41B17", "#E18B6B", "#8BB381", "#3B9C9C", "#F52887", "#3BB9FF", "#1589FF", "#D4A017", "#EDDA74", "#B1FB17", "#ADA96E", "#87F717", "#ADDFFF", "#E77471", "#A8A8A8", "#FAAFBA", "#F9966B", "#3EA99F", "#82CAFA", "#728FCE", "#41A317", "#FF00FF", "#B048B5", "#48CCCD", "#CA226B", "#F87A17", "#F63817", "#E57DED", "#D16587", "#B38481", "#F63526", "#F88158", "#EE9A4D", "#6698FF", "#4AA02C", "#D8AF79", "#D2B9D3", "#F75431", "#43C6DB", "#8D38C9", "#52D017"}

The moral : Do not copy from Construction protocole HTML File.

Sorry for having bothered you with this silly error

© 2021 International GeoGebra Institute