• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Celtic songs for modern dreamers

  • About
    • Heather Dale
    • Half A Million Miles (Detailed Bio)
    • FAQ
  • Music
    • The Heather Dale Store
    • Recordings
    • Free Music
  • Podcasts
  • Video
  • Patreon Supporters
    • Monthly Subscription
    • Member News
    • Supporters Hall of Heroes
  • Sign In
    • My Account
    • My Shopping Cart
    • Checkout
    • Shipping & Returns
  • Store
    • MUSIC
    • FREE: Perpetual Gift
    • THEME: King Arthur
    • THEME: World Legends
    • THEME: Medieval Life
    • THEME: Celtic Favorites
    • THEME: Smart Kids
    • THEME: Seasonal Music
    • THEME: Live & Rarities
    • THEME: Ambient Relaxation

Introduction To Computer Graphics: Using Java 2... Apr 2026

Scaling, rotating, and translating shapes across the screen.

Mapping abstract user coordinates to physical pixel grids. Introduction to Computer Graphics: Using Java 2...

import javax.swing.*; import java.awt.*; import java.awt.geom.*; public class GraphicsStarter extends JPanel { @Override protected void paintComponent(Graphics g) { super.paintComponent(g); // Cast to Graphics2D for advanced operations Graphics2D g2 = (Graphics2D) g; // 1. Enable Antialiasing for smooth edges g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); // 2. Draw a filled blue rectangle g2.setColor(Color.BLUE); g2.fillRect(50, 50, 200, 100); // 3. Draw a rotated red ellipse g2.setColor(Color.RED); g2.rotate(Math.toRadians(15), 300, 200); // Rotate 15 degrees g2.fill(new Ellipse2D.Double(300, 150, 120, 80)); } public static void main(String[] args) { JFrame frame = new JFrame("Introduction to Java 2D"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(600, 400); frame.add(new GraphicsStarter()); frame.setVisible(true); } } Use code with caution. Copied to clipboard Scaling, rotating, and translating shapes across the screen

Determining how light and pigments are represented computationally. Enable Antialiasing for smooth edges g2

Before Footer

THANK YOU! Here - have a free album :)

JOIN the HEATHER DALE MUSIC NEWSLETTER
for the latest news, recordings, and concerts:

Footer

Connect with Heather:

  • Facebook
  • Instagram
  • Pinterest

LISTEN NOW:

Email:

Copyright © 2025 · heatherdale on Genesis Framework · WordPress · Log in

%!s(int=2026) © %!d(string=Fresh Solar Stage)