jarylo

Crates.iojarylo
lib.rsjarylo
version0.1.3
sourcesrc
created_at2023-05-16 23:11:46.02434
updated_at2023-05-18 09:38:30.151099
descriptionA shell for easier manipulation of glium
homepagehttps://github.com/MayorDi/jarylo
repositoryhttps://github.com/MayorDi/jarylo
max_upload_size
id866389
size24,113
Dmitriy Mayorov (MayorDi)

documentation

README

logo_icon_jarylo Jarylo

Jarilo (Yarilo) is a library made specifically to simplify working with 'glium'. The library was created specifically for Dryadlogo_icon_dryad

A simple example of a program on Jarylo:

use jarylo::color::*;

fn main() {
    jarylo::App::new()
        .set_title("simple".to_string())
        .set_update(||{})
        .set_render(|painter| {
            painter.set_color(BLACK);
            painter.clear();
            
            painter.set_color(WHITE);
            painter.draw_rect(0.0, 0.0, 0.5, 0.5);
        }).build().run();
}

simple_window

jarylo::App::new() - creating an application.
set_title - definition of the application header.
set_update - definition of the main calculation cycle.
set_render - definition of the main rendering cycle.
build is the method of assembling all configured components.
run is the method of launching the application.

Commit count: 0

cargo fmt