Skip to content

LQNguyen05-max/java-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CS 4361 Computer Graphics

Exercise 1.6 – Java Graphics Program 📖 Description

This project is a solution to Exercise 1.6 from the textbook (pages 27–28). The task involves writing a Java program that:

Draws all components shown in the figure from the textbook (rectangles, shapes, or text as required).

The positions do not need to be pixel-perfect but should resemble the figure.

Interactive Behavior:

When the mouse cursor moves inside the main drawing area, the text “PAUSE” (in a large font) will be displayed.

When the mouse cursor moves outside the drawing area, the word “PAUSE” will disappear.

This demonstrates basic graphics drawing and mouse event handling in Java.

🛠️ Features

Custom drawing of shapes and text using Java Swing/Graphics.

Real-time detection of mouse cursor position.

Conditional rendering of the “PAUSE” message.

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages