• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Turn Rectangle Transparent Color

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to turn the rectangle on code line 102 transparent blue. Code starts after the ----- line. I am brand new to this so don't know much. Thanks!!!
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 
Marshal
Posts: 80655
477
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't know, but that ain't Java®. It looks rather like ECMAScript (Javascript) so I shall try moving you where we usually discuss that.

And I have added code tags: always use them. Doesn't it look better now

And welcome to the Ranch
 
Sheriff
Posts: 28401
100
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think it would help if you produced a much smaller example of code to ask about. You don't really need all of that code to produce a coloured rectangle, do you? Have a look at the SSCCE document (<== follow the link) for more about why.
 
Ranch Hand
Posts: 98
Angular Framework Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are calling a function addRect to set Rectangle property the addRect function set canvas fill style as cyan colour.you need to change parameter value to blue



try to change the function call parameter you can set transparent or blue

reply
    Bookmark Topic Watch Topic
  • New Topic