MCPcopy Create free account
hub / github.com/aegeorge42/aegeorge42.github.io / setTint

Method setTint

View/Button.js:40–65  ·  view source on GitHub ↗
(tint,event)

Source from the content-addressed store, hash-verified

38 }
39
40 setTint(tint,event){
41 if(event){
42 this.on(event, function(e){
43 this.tint=tint;
44 })
45
46 } else {
47
48 this.tint=tint;
49 this.on('mouseover', function(e){
50 this.tint=tint;
51 })
52
53 this.on('mouseout', function(e){
54 this.tint=tint;
55 })
56
57 this.on('mousedown', function(e){
58 this.tint=tint;
59 })
60
61 this.on('mouseup', function(e){
62 this.tint=tint;
63 })
64 }
65 }
66
67 tintGray(){
68 this.setTint(tintGray);

Callers 2

tintGrayMethod · 0.95
drawActFnButtonsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected