File | Line | Function |
---|---|---|
/global.php | 94 | errorHandler->error |
/printthread.php | 16 | require_once |
File | Line | Function |
---|---|---|
/global.php | 550 | errorHandler->error |
/printthread.php | 16 | require_once |
File | Line | Function |
---|---|---|
/global.php | 811 | errorHandler->error |
/printthread.php | 16 | require_once |
File | Line | Function |
---|---|---|
/global.php | 811 | errorHandler->error |
/printthread.php | 16 | require_once |
File | Line | Function |
---|---|---|
/global.php(872) : eval()'d code | 26 | errorHandler->error |
/global.php | 872 | eval |
/printthread.php | 16 | require_once |
File | Line | Function |
---|---|---|
/printthread.php | 160 | errorHandler->error |
File | Line | Function |
---|---|---|
/printthread.php | 165 | errorHandler->error |
File | Line | Function |
---|---|---|
/printthread.php | 160 | errorHandler->error |
File | Line | Function |
---|---|---|
/printthread.php | 165 | errorHandler->error |
The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
|
Color class extension - Printable Version +- Official Murl Engine Forum (https://murlengine.com/forum) +-- Forum: Murl Engine (https://murlengine.com/forum/forumdisplay.php?fid=5) +--- Forum: General (https://murlengine.com/forum/forumdisplay.php?fid=8) +--- Thread: Color class extension (/showthread.php?tid=273) |
Color class extension - Andy - 19 Oct 2016 The Color class should provide the following method: UInt32 ToUInt32Clamped() const { UInt32 red = Math::Clamp<SInt32>(Math::Round(mColor[RED] * Float(255.0)), 0, 255); UInt32 green = Math::Clamp<SInt32>(Math::Round(mColor[GREEN] * Float(255.0)), 0, 255); UInt32 blue = Math::Clamp<SInt32>(Math::Round(mColor[BLUE] * Float(255.0)), 0, 255); UInt32 alpha = Math::Clamp<SInt32>(Math::Round(mColor[ALPHA] * Float(255.0)), 0, 255); return red + (green << 8) + (blue << 16) + (alpha << 24); } This will help converting overdriven floating point color values. RE: Color class extension - Ketschak - 19 Oct 2016 Hi Andy, thanks for your proposal. We will consider it for the next update. |