velocity.y

gets/sets the y velocity

Examples

const btn = $.makeButton(
                                $.w/2, 
                                $.h/2,
                                100,
                                35,
                                "label"
                            );
                            btn.velocity.y = 5;
                            
                            function update() {
                                if(btn.y > $.h) {
                                    btn.y=0;
                                }
                                btn.draw();
                            }