Exemple #1
0
    def pecas_cor(self) -> tp.pb[tp.grad]:
        res = tp.pb(tp.grad(randcor(), randcor()),
                    tp.grad(randcor(), randcor()))
        res.preto.transparencia_padrao()
        res.branco.transparencia_padrao()

        return res
Exemple #2
0
 def pecas_cor(self) -> tp.pb[tp.grad]:
     return tp.pb(
         tp.grad(pg.Color(0, 0, 0, 0), pg.Color(100, 100, 100, 255)),
         tp.grad(pg.Color(100, 100, 100, 0), pg.Color(255, 255, 255, 255)),
     )