mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Profiler: Extract percentage gradient calculation into its own file
This commit is contained in:
parent
ddccf451a9
commit
1c3a82d59e
5 changed files with 48 additions and 36 deletions
15
Userland/DevTools/Profiler/Gradient.h
Normal file
15
Userland/DevTools/Profiler/Gradient.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGfx/Color.h>
|
||||
|
||||
namespace Profiler {
|
||||
|
||||
Color color_for_percent(u8 percent);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue