Skip to content

Commit

Permalink
feat: tune smear parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sphamba committed Dec 2, 2024
1 parent 0ab8ab8 commit 22ae208
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ As an example of further configuration, you can tune the smear dynamics to be sn
```lua
opts = { -- Default Range
stiffness = 0.8, -- 0.6 [0, 1]
trailing_stiffness = 0.5, -- 0.3 [0, 1]
trailing_stiffness = 0.5, -- 0.25 [0, 1]
distance_stop_animating = 0.5, -- 0.1 > 0
hide_target_hack = false, -- true boolean
},
Expand Down
8 changes: 4 additions & 4 deletions lua/smear_cursor/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ M.stiffness = 0.6

-- How fast the smear's tail moves towards the target.
-- 0: no movement, 1: instantaneous
M.trailing_stiffness = 0.3
M.trailing_stiffness = 0.25

-- How much the tail slows down when getting close to the head.
-- 0: no slowdown, more: more slowdown
Expand All @@ -41,10 +41,10 @@ M.min_slope_vertical = 2
M.color_levels = 16 -- Minimum 1
M.gamma = 2.2 -- For color blending
M.max_shade_no_matrix = 0.9 -- 0: more overhangs, 1: more matrices
M.matrix_pixel_threshold = 0.2 -- 0: all pixels, 1: no pixel
M.matrix_pixel_threshold = 0.5 -- 0: all pixels, 1: no pixel
M.matrix_pixel_min_factor = 0.5 -- 0: all pixels, 1: no pixel
M.volume_reduction_exponent = 0.2 -- 0: no reduction, 1: full reduction
M.minimum_volume_factor = 0.7 -- 0: no limit, 1: no reduction
M.volume_reduction_exponent = 0.3 -- 0: no reduction, 1: full reduction
M.minimum_volume_factor = 0.5 -- 0: no limit, 1: no reduction

-- For debugging ---------------------------------------------------------------

Expand Down

0 comments on commit 22ae208

Please sign in to comment.