This file contains hidden or 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
Battery Status: | |
Camera: https://github.com/bazzisoft-openfl-extensions/camera | |
Contacts: | |
Device Info: https://github.com/hyperfiction/HypSystem (not tested) | |
Device Motion (Accelerometer): | |
Device Orientation (Compass): | |
Geolocation: | |
Open Browser: https://github.com/bazzisoft-openfl-extensions/interop | |
Media Playback: | |
Media Capture: |
This file contains hidden or 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; | |
import js.Browser; | |
import js.html.TouchEvent; | |
class JsTouch | |
{ | |
public static var down:Bool = false; | |
public static var move:Bool = false; | |
public static var x:Float; |
This file contains hidden or 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; | |
import kha.Framebuffer; | |
import kha.graphics2.Graphics; | |
import kha.Image; | |
import kha.input.Keyboard; | |
import kha.Key; | |
import kha.Scaler; | |
import kha.System; |
This file contains hidden or 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; | |
class Rectangle | |
{ | |
public var x: Float; | |
public var y: Float; | |
public var width: Int; | |
public var height: Int; | |
public function new(x:Float = 0, y:Float = 0, width:Int = 0, height:Int = 0):Void |
This file contains hidden or 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
function render(framebuffer: Framebuffer): Void { | |
var w1 = framebuffer.width / 2; | |
var h1 = framebuffer.height / 2; | |
var w2 = framebuffer.width / 3; | |
var h2 = framebuffer.height / 3; | |
var w3 = framebuffer.width / 6; | |
var h3 = framebuffer.height / 6; | |
This file contains hidden or 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; | |
import kha.Framebuffer; | |
import kha.Scheduler; | |
import kha.System; | |
import kha.Image; | |
@:enum | |
abstract T0(Int) { | |
var a = 0; |
This file contains hidden or 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; | |
import kha.Color; | |
import kha.Image; | |
import kha.System; | |
import kha.graphics2.Graphics; | |
class Backdrop | |
{ | |
public var image:Image; |
This file contains hidden or 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
// Ported from https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.tools.ts | |
// Don't seems to work in KodeStudio, only in a browser. | |
// It creates a new window with the image. If you can't save the image, try to right click in the image | |
// and choose to open in a new tab. | |
#if js | |
package; | |
import js.html.Window; |
This file contains hidden or 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
#!/usr/bin/python | |
# How to use: | |
# In Windows and Linux there is .gimp-xx folder in your home folder | |
# save the file in .gimp-xx/plug-ins/ | |
# For Mac search in Google where to save Gimp plugins | |
# The menu is Image -> Save layer atlas | |
from gimpfu import * |
OlderNewer