Created
July 15, 2017 21:28
-
-
Save kyzentun/39d4b37967dc1ff4daf5e692a9e439c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local columns= notefields[pn]:get_columns() | |
local num_columns= #columns | |
local radius= 192 | |
for i, col in ipairs(columns) do | |
local angle= i * (math.pi * 2 / num_columns) | |
col:set_base_values{ | |
y_offset_vec_x= math.cos(angle), | |
y_offset_vec_y= math.sin(angle), | |
reverse_offset= radius, | |
column_pos_x= 0, | |
column_pos_y= 0, | |
column_pos_z= 0, | |
} | |
col:set_pixels_visible_after(radius) | |
col:set_holds_skewed_by_mods(false) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment