Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WayfireWM/wayfire
/ particle_count_for_width
Function
particle_count_for_width
plugins/animate/fire/fire.cpp:28–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
}
27
28
static int particle_count_for_width(int width)
29
{
30
int particles = fire_particles;
31
32
return particles * std::min(width / 400.0, 3.5);
33
}
34
35
class fire_node_t : public wf::scene::floating_inner_node_t
36
{
Callers
1
step
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected