Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxin96 committed Jun 22, 2021
2 parents 7595114 + d77cd42 commit cf51e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboards/yandrstudio/utils/RGB/getRgbMtrixPosition.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ cal_u_rgb = function gen_rgb_matrix_2(rownum, colnum) {



cal_a_row_rgb = function gen_rgb_matrix_2(row, rownum, colnum, reverse) {
cal_a_row_rgb = function gen_rgb_matrix_3(row, rownum, colnum, reverse) {
function get_x(col, colnum){
var x = 224 / (colnum - 1) * col;
return Math.round(x);
Expand Down

0 comments on commit cf51e9c

Please sign in to comment.