330 {
331 constexpr float kMaxX = 6;
332 constexpr float kMaxY = 3;
333
334 const SkColor baseColors[3] = {
335 0xff101010, 0xff808080, 0xffc0c0c0
336 };
337 const SkColor bonusColors[3] = {
338 0xffe01040, 0xff10c030, 0xffe05010
339 };
341 float distanceY =
size.fHeight / (
kMaxY + 1);
344
345 fPoint =
SkPoint::Make(distanceX * (randX + (randY % 2) / 2), distanceY * (randY + 0.5f));
346
347 fRadius = 20 + std::pow(random->
nextF(), 5) * (std::min(distanceX, distanceY) / 1.8f);
350 fOmega = (random->
nextF() - 0.5f) * 0.3f;
351 fCounterclockwise = random->
nextBool();
352
353
354
357 fColor = colorIndex == 3 ? bonusColor : baseColors[colorIndex];
358 fLineWidth = 1 + std::pow(random->
nextF(), 5) * 30;
360 }
#define sk_float_ceil2int(x)
float nextRangeF(float min, float max)
uint32_t nextRangeU(uint32_t min, uint32_t max)
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)