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