Messing around with GraphicsBuilder - No Fluff Just Stuff

Messing around with GraphicsBuilder

Posted by: Andres Almiray on January 10, 2008

Here I was reviewing the recent changes in GraphicsBuilder before making the next release when I felt like playing around with shapes and see what would come out. Eventually decided to try a web 2.0 like button, you know, those fancy images with gradient and glossy effects. After 10 minutes of hacking around...



Something tells me I should stick to programming and leave the design stuff to more creative people than me. Anyway you may notice gradients applied almost everywhere, and as a matter of fact I'm relaying heavily on multipaints, they are useful for providing a base color and then applying one or more gradients on top. Here is the source
I don't I mentioned previously but Color has been groovified with a derive method, which is a cool way to obtain a new color from a base one. Notice also another new shape: roundRect. It is based on RoundedRectangleComplex from Degrafa, simply put it is a rectangle that may have different round values for each corner.

Now that I have proven that GrahicsBuilder is an option for creating webby buttons and that it can also render to offscreen images the next logic step would be to cook up a Grails plugin to serve custom-made on-the-fly images ;-)

Keep on Groovying!
Andres Almiray

About Andres Almiray

Andres is a Java/Groovy developer and a Java Champion with more than 20 years of experience in software design and development. He has been involved in web and desktop application development since the early days of Java. Andres is a true believer in open source and has participated on popular projects like Groovy, Griffon, and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework and Hackergarten community event. https://ch.linkedin.com/in/aalmiray

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »