fonteditor/demo/canvasFindBreakPoint.html
2015-03-25 23:42:40 +08:00

36 lines
856 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>canvas查找关键点</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div>
<input id="upload-file" type="file">
灰度阈值:<input id="threshold-gray" type="range" min="0" max="255" value="200">
alpha阈值<input id="threshold-alpha" type="range" min="0" max="255" value="50">
</div>
<canvas id="canvas" width="800" height="800"></canvas>
<script>
require.config({
baseUrl: '../src',
paths: {
demo: '../demo/js',
}
});
define('jquery', $);
</script>
<script>require(['demo/canvasFindBreakPoint'])</script>
</body>
</html>