Skip to content

Ellipses dawn with create_ellipse_filled() are different size than those drawn with draw_ellipse_filled() #756

@SirGnip

Description

@SirGnip

Bug Report

Actual behavior:

A shape created with create_ellipse_filled() and put in a ShapeElementList is a different size than a shape drawn with draw_ellipse_filled(), even though they have the same width/height

Expected behavior:

I expect both functions to draw the same size ellipse.

Steps to reproduce/example code:

The ellipses are different sizes even though they have the same width and height:

image

import arcade

x = 200
y = 100
oval_width = 50
oval_height = 100


class MyGame(arcade.Window):
    def __init__(self, width, height, title):
        super().__init__(width, height, title)
        shape = arcade.create_ellipse_filled(x, y, oval_width, oval_height, arcade.color.RED)
        self.shape_list = arcade.ShapeElementList()
        self.shape_list.append(shape)

    def on_draw(self):
        arcade.start_render()
        self.shape_list.draw()
        arcade.draw_ellipse_filled(x, y + 200, oval_width, oval_height, arcade.color.BLUE)

def main():
    MyGame(400, 400, "size repro")
    arcade.run()


if __name__ == "__main__":
    main()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions