Skip to main content
buksori
Inspiring
October 26, 2020
Question

Can I change html bgcolor on html 5 Canvas documents published by Animate 2020?

  • October 26, 2020
  • 4 replies
  • 401 views

Anyone help me please..

 

In html 5 (Canvas) documents of Animate 2020, although I set up black (or red) on stage color, I see white on html background color.

Html bgcolor is always white.

Can I change html bgcolor on html 5 Canvas document published by Animate 2020?

Is there any way I can match stage color with html background color?

Anyone help me please!

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    October 26, 2020

    Hi.

     

    There is.

     

    In the beginning of your code, write this down:

    document.body.style.backgroundColor = lib.properties.color;

     

    Please let us know if you have any further questions.

     

    Regards,

    JC

    buksori
    buksoriAuthor
    Inspiring
    October 26, 2020

    Thank you for your help.

     

    Is there any other way I can operate in Animate 2020 to change html bgcolor?

    Legend
    October 26, 2020

    Of course you can. It's HTML. You can do literally anything to it that you can with any other HTML document.