ShadowEditor/test/ui/11 ColorTest.html
2018-07-27 12:33:53 +08:00

28 lines
733 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>Color Test</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="../../assets/css/main.css" rel="stylesheet" />
</head>
<body>
<script src="../../node_modules/three/build/three.js"></script>
<script src="../../dist/ShadowEditor.js"></script>
<script>
var control = Shadow.UI.create({
xtype: 'color',
value: '#ff0000',
onChange: function () {
UI.msg(`Value: ${this.getValue()}\nHexValue: ${this.getHexValue()}`);
}
});
control.render();
</script>
</body>
</html>