This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The DockBuilder API is still marked as experimental, include Dear ImGui's internal header to pull the functions in: | |
#include "imgui_internal.h" | |
// [...] | |
// Beginning of main loop | |
// 1. DockBuilder functions only need to run once to take effect. | |
// This state variable will let us check for the first frame of the app. | |
static bool firstLoop = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import javax.swing.*; | |
import java.awt.event.*; | |
/********************************** | |
This is the main class of a Java program to play a game based on hexagonal tiles. | |
The mechanism of handling hexes is in the file hexmech.java. | |
Written by: M.H. | |
Date: December 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package helloworld | |
import javafx.application.Application | |
import javafx.scene.Scene | |
import javafx.scene.control.Button | |
import javafx.scene.layout.StackPane | |
import javafx.stage.Stage | |
import groovy.transform.CompileStatic |