332 {
333 constexpr float kMaxX = 6;
334 constexpr float kMaxY = 3;
335
336 const SkColor baseColors[3] = {
337 0xff101010, 0xff808080, 0xffc0c0c0
338 };
339 const SkColor bonusColors[3] = {
340 0xffe01040, 0xff10c030, 0xffe05010
341 };
343 float distanceY =
size.fHeight / (
kMaxY + 1);
346
347 fPoint =
SkPoint::Make(distanceX * (randX + (randY % 2) / 2), distanceY * (randY + 0.5f));
348
349 fRadius = 20 + std::pow(random->
nextF(), 5) * (
std::min(distanceX, distanceY) / 1.8f);
352 fOmega = (random->
nextF() - 0.5f) * 0.3f;
353 fCounterclockwise = random->
nextBool();
354
355
356
359 fColor = colorIndex == 3 ? bonusColor : baseColors[colorIndex];
360 fLineWidth = 1 + std::pow(random->
nextF(), 5) * 30;
362 }
#define sk_float_ceil2int(x)
float nextRangeF(float min, float max)
uint32_t nextRangeU(uint32_t min, uint32_t max)
static float min(float r, float g, float b)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
static constexpr SkPoint Make(float x, float y)