Method for implementing special effect of fillet with shadow in wayland environment
By obtaining the corner radius and shadow width in the Wayland environment, calculating the distance between pixels and supplementing the color, the rounded corner special effect of the client decoration application is realized, the problem of the perfect combination of shadow and rounded corner effects is solved, and the window screen quality is improved. Softness and beauty.
CN118537424APending Publication Date: 2024-08-23KYLIN CORP
Patent Information
- Application Number
- CN202410541225.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
Smart Images

Figure CN118537424A
Abstract
The invention relates to the technical field of window decoration, and particularly provides a method for realizing a special effect of a fillet with a shadow in a wayland environment, which comprises the following steps of: acquiring a user interface graph and a fillet radius and a shadow width thereof; for each right angle of the user interface graph, determining a circle center according to a fillet radius, and drawing a circle which is intersected with the user interface graph at two points A and B to obtain an inferior arc AB; establishing a coordinate system by taking the circle center as a coordinate origin, and calculating coordinate points of all pixel points; calculating the distances between all the pixel points and the circle center; pixel points with the distance larger than r in the corresponding quadrants are discarded in the fragment shader; all pixel points and color values of the frame shadow are obtained from the x axis or the y axis, and color supplementation is carried out on arc segments which pass through the pixel points and are parallel to the inferior arc AB; the texture is rendered, and the fillet special effect of the user interface graph is completed. The technical problems that a client decoration application with a shadow is poor in effect and complex in process in the aspect of achieving the fillet special effect are solved.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Cited By
General implementation method and system for geometric special effect in Wayland environment
CN120107443A
