Skip to content

Commit

Permalink
Update getRgbMtrixPosition.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaxin96 authored Jun 21, 2021
1 parent 6db9a90 commit d77cd42
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 d77cd42

Please sign in to comment.