Skip to content

Instantly share code, notes, and snippets.

@kyzentun
Created July 15, 2017 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyzentun/39d4b37967dc1ff4daf5e692a9e439c8 to your computer and use it in GitHub Desktop.
Save kyzentun/39d4b37967dc1ff4daf5e692a9e439c8 to your computer and use it in GitHub Desktop.
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