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.

D4 does not display faces correctly

See original GitHub issue

The 4-sided dice does not display its faces properly. The number at the top of the pyramid is often different for each face - it should be the same number specified in the value property.

To reproduce…simply switch out the D6 and replace them with D4 objects in the rolling.html example. Lines 105 & 106 become:

    for (var i = 0; i < 4; i++) {
        var die = new DiceD4({size: 1.5, backColor: colors[i]});

The throw should have dice displaying one each of red=1, yellow=2, green=3 & blue=4 at the top. Instead the actual throw shows red=1 and yellow=2 as expected, but the blue and green dice have mismatched numbers: image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

giorgiobeggioracommented, Nov 28, 2018

any news about this?

byWulfcommented, Sep 23, 2021

Please try it out, I just merged @eipporko 's PR. If that is enough, I would close @tim-duncan 's PR then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

D4 "face tracking"? - DPReview
AF mode accurately recognizes human faces and achieves sharp focus immediately and automatically — useful when there's no time to manually
Read more >
Camera White Balance Correction, easy fixes
But the camera has no such brain to correct it. The right idea is to use proper white balance to match the light...
Read more >
Four fair dice D1, D2, D3 and D4 , each having six faces ...
The probability that D4 shows a number appearing on one of D1, D2 and D3 is. ... Suppose, the out come of the...
Read more >
Setting Guide
Changes to one bank have no effect on the others. ... until the desired setting is displayed in the rear control panel. U...
Read more >
How to reset your Suunto watch?
1. The soft reset (restart): · the device is not responding to any button presses, taps, or swipes (the touch screen is not...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found