question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support ARGB for pen

See original GitHub issue

Expected Behavior

The set pen color to {color} block should support ARGB in the same way that Scratch 2.0 does.

Actual Behavior

The set pen color to {color} block supports only RGB color.

Steps to Reproduce

image

Note that 2147483903 = 0x800000FF = ARGB(128, 0, 0, 255).

In Scratch 2.0 this will result in an image like this:

image

Needs discussion

Should the set pen color to {number} block also support ARGB color? It doesn’t in Scratch 2.0, which is why the color variable is necessary in the “Steps to Reproduce” example.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
thisandagaincommented, Jan 23, 2017

My recommendation would be to implement this identically to Scratch 2.0 for now in order to maintain compatibility / avoid scope creep.

1reaction
ed-coopercommented, Feb 11, 2017

Interestingly, once you click the “show” block in sprite1, the project is fixed. I suspect this is some deeper issue related to loading of projects into the VM (seeing as it works in Scratch 2)

(EDIT: You have to drag out a new show block from the toolbox, if that wasn’t clear)

Read more comments on GitHub >

github_iconTop Results From Across the Web

RGB values for pen - Discuss Scratch
I suggest having a way to input RGB values into your pen color, ... Does Scratch support hexadecimal numbers in other places?
Read more >
Customized Argb Standing Gpu Holder Support 5v 3pin Sync
customized argb standing gpu holder support 5v 3pin sync graphics card holder support. DreambigbyRayMOD. 11,706 sales |
Read more >
Solved: PEN Colour - Graphisoft Community
GDL does not support pen RGB. In general pen RGB appeared only after Archicad introduced conversion of PDF into drawing primitives - in...
Read more >
Creating Colored Pens and Brushes - Win32 apps
... a color that the device does not support. In either case, you can use the RGB macro to specify a color when...
Read more >
rgb color sliders - CodePen
To get the best cross-browser support, it is a common practice to apply vendor ... \":\"pen\",\"resources\":[],\"tags\":[\"color\",\"slider\",\"rgb\"] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found