Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: gh-pages
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 0.553 kB
<!DOCTYPE html>
<html>
<head>
<style>
#cr-stage { border:2px solid black; margin:5px auto;}
</style>
</head>
<body>
<script type="text/javascript" src="http://cdn.crafty-modules.com/crafty-DEBUG.js"></script>
<script>
window.onload = function () {
Crafty.init(400, 336);
Crafty.scene("main", function () {
Crafty.e("2D, DOM, Color")
.attr({x: 100, y: 100, w: 150, h: 200})
.color("red");
});
Crafty.scene("main");
};
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.