3 Back 2 Browser Bytecode Translator
4 Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, version 2 of the License.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. Look for COPYING file in the top folder.
17 If not, see http://opensource.org/licenses/GPL-2.0.
22 Universal, flexible, capable, effective, highly efficient Canvas API for any device on the planet (and beyond).
23 The purpose of this API is to create a common interface for drawing to a canvas using Java. Currently there are implementations for JavaFX Canvas and for
24 HTML 5 Canvas. You can choose your implementation depending on the availability on your target platform and performance
27 The entry point is the GraphicsUtils class. It gives you access to the GraphicsContext that you can use to draw.
28 Currently you need to pass in a GraphicsEnvironment:
29 // JavaFX implementation available here https://github.com/eppleton/FXGameEngine
30 GraphicsContext gc = GraphicsUtil.create(new JavaFXGraphicsEnvironment());