mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
25 lines
768 B
JavaScript
25 lines
768 B
JavaScript
#!/usr/bin/env node
|
|
/* LICENSE BEGIN
|
|
This file is part of the SixtyFPS Project -- https://sixtyfps.io
|
|
Copyright (c) 2021 Olivier Goffart <olivier.goffart@sixtyfps.io>
|
|
Copyright (c) 2021 Simon Hausmann <simon.hausmann@sixtyfps.io>
|
|
|
|
SPDX-License-Identifier: GPL-3.0-only
|
|
This file is also available under commercial licensing terms.
|
|
Please contact info@sixtyfps.io for more information.
|
|
LICENSE END */
|
|
|
|
const path = require("path");
|
|
let sixtyfps = require("sixtyfps");
|
|
|
|
let demo = require("../ui/printerdemo.60");
|
|
let window = new demo.MainWindow();
|
|
|
|
window.ink_levels = [
|
|
{ color: "#00ffff", level: 0.30 },
|
|
{ color: "#ff00ff", level: 0.80 },
|
|
{ color: "#ffff00", level: 0.60 },
|
|
{ color: "#000000", level: 0.90 }];
|
|
|
|
window.run();
|
|
|