Garry's Mod Wiki

Derma_DrawBackgroundBlur

  Derma_DrawBackgroundBlur( Panel panel, number startTime )

Description

Draws background blur around the given panel.

Calling this on the same Panel multiple times makes the blur darker.

Arguments

1 Panel panel
Panel to draw the background blur around
2 number startTime
Time that the blur began being painted

Example

Blur being drawn around a panel

function PANEL:Init() self.startTime = SysTime() end function PANEL:Paint() Derma_DrawBackgroundBlur(self, self.startTime) end
Output: Background blur is drawn around the panel