MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / set_texture_fill_alpha

Method set_texture_fill_alpha

canvas/src/context.rs:252–254  ·  view source on GitHub ↗

Applies an alpha value to a texture

(&mut self, texture_id: TextureId, alpha: f32)

Source from the content-addressed store, hash-verified

250
251 /// Applies an alpha value to a texture
252 fn set_texture_fill_alpha(&mut self, texture_id: TextureId, alpha: f32) {
253 self.draw(Draw::Texture(texture_id, TextureOp::FillTransparency(alpha)));
254 }
255
256
257

Callers 4

drawMethod · 0.80
show_mandelbrotFunction · 0.80
draw_mandelbrotFunction · 0.80
mainFunction · 0.80

Implementers 3

font_line_layout.rscanvas/src/font_line_layout.rs
context.rscanvas/src/context.rs
canvas.rscanvas/src/canvas.rs

Calls 2

TextureClass · 0.85
drawMethod · 0.45

Tested by

no test coverage detected