Skip to content

nickd3000/minvio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Minvio example CubeWave

Maven Central GitHub

Minvio is a Lightweight Java framework for developing graphical applications.

Minvio handles creating the application window and timed draw loop, and exposes a host of drawing and input functionality.

http://www.coolbubble.com/projects/minvio

Add maven dependency:

<dependency>
    <groupId>io.github.nickd3000</groupId>
    <artifactId>minvio</artifactId>
    <version>1.08</version>
</dependency>

Minimal example

import com.physmo.minvio.MinvioApp;

import java.awt.Color;

class SimpleExample extends MinvioApp {

    public static void main(String... args) {
        MinvioApp app = new SimpleExample();
        app.start(200, 200, "Simple Example", 60);
    }

    @Override
    public void draw(double delta) {
        cls(Color.LIGHT_GRAY);
        setDrawColor(Color.WHITE);
        drawFilledRect(75, 75, 50, 50);
        setDrawColor(Color.BLUE);
        drawCircle(100, 100, 70);
        drawText("X:" + getMouseX() + " Y:" + getMouseY(), 10, 190);
        drawText("Tick :" + getFps(), 10, 160);
    }
}

Changelist

Version 1.08 - August 2024
  • Simplified app startup
  • Added pass-through methods in MinvioApp to drawing context
Version 1.07 - May 2023
  • Removed all example - They are now in a separate project - minvio-examples
Version 1.06 - December 23 2021
  • Matrix drawer changes
  • Added QuickRandom
Version 1.05 - December 13 2021
  • Added Entity-Component system
  • Added Entity-Component example
  • Added Vec3 object
  • Added bucket list utility and gravity particle example
  • Added Ribbons to gallery
  • Added getMousePointNormalised
Version 1.04 - October 17 2021
  • Added Perlin Noise utility and examples.
  • Added colour gradient system and examples.
  • Added Matrix and point list rendering helpers with examples.
Version 1.03 - October 10 2021
  • Added anchor system.
  • Rearranged example file folders.
  • Added lerp functions for several types.
  • Added FindClosestPointInList helper function.
  • Changes to image loading.

http://www.coolbubble.com/cc/ - coolcompare