• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Making a Retro Sun  RSS feed

 
Greenhorn
Posts: 1
Java Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm making a retro sun but am having a stroke trying to figure it out.

below is a link to the image I'm trying to make.

https://images6.alphacoders.com/843/843675.jpg









 
Sheriff
Posts: 13454
222
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Did you have a question? What exactly is giving you a stroke here?
 
Saloon Keeper
Posts: 3252
128
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Rukia,

if that sun is giving you some headaches, there is a relatively easy way to give that sun almost every shape you like, by using a suitable shape, setting that as a clip, and then draw some rectangles. For instance:



PS: there was, recently, a big topic about the meaning of 'this'. As you see, the 'this' in this code does not refer to the instance of BufferedImagesAndShapes, but to the instance of the JPanel.
 
Liar, liar, pants on fire! refreshing plug:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!