随笔分类 - Canvas
摘要:// Approximates the brightness of a RGB value. float luminance( vec3 color ) { return dot(lum, color); } int size = width * height; std::vector<GLfloa
阅读全文
摘要:var coordinates_0 = coordinates[0]; var x = coordinates_0[0]; var y = coordinates_0[1]; var coordinates_1 = coordinates[1]; var x1 = coordinates_1[0]; var y1 = coordinates_1[1]; var ctx = state.contex
阅读全文