I am using build 700.
If I run a program that only has this:[lua]local circle = display.newCircle(100, 100, 25)
circle:setFillColor(255, 40, 255)[/lua]I get a purple square and not a circle. Background images have nothing to do with it. [import]uid: 70391 topic_id: 14990 reply_id: 71239[/import]
Upon further testing, it seems like this is a Simulator-only problem. When I build to my Droid, the lines and circles in my program work. But in the Simulator, they show up as rectangles.
The moral here, I guess: You’ll just have to use your imagination until you get it on the real device. [import]uid: 70391 topic_id: 14990 reply_id: 71244[/import]
Hey Matt,
Just out of interest can you try making a new project real quick and displaying a new circle? (I’d like to know if it appears as a rectangle then as well.)
Thanks,
Peach
[import]uid: 52491 topic_id: 14990 reply_id: 71253[/import]
Hey Peach!
I created a brand new project, pasted the two lines from above, and it did in fact create a circle. I was also able to add a line. I also added a newImageRect behind everything and the circle and line still drew.
However, I then deleted the files for my circletest program, and pasted all the files from my own project into that folder. When I ran, I just saw squares instead of lines and circles again.
My project is quite complicated and there are a bunch of things going on, so this is going to be a pain to isolate. It’s very interesting though, that simply creating a new main.lua and putting the circle draw in there resulted in a square, but creating a brand new project with the same code resulted in a circle.
Almost makes you think there’s something in the build.settings or config.lua that is causing this error, doesn’t it? [import]uid: 70391 topic_id: 14990 reply_id: 71313[/import]
You know what? I just proved my own theory, by removing my build.settings and config.lua and running the program. I got the circles and lines.
I restored the build.settings and code still worked.
I removed the build.settings and restored the config.lua, and got the rectangles again.
So it’s a problem with the config.lua.
Here’s my config.lua:
[lua]application =
{
content =
{
antialias = true,
width = 480,
height = 854,
scale = “zoomEven”,
imageSuffix =
{
["_64"] = 0.67,
–["_96"] = 1,
["_128"] = 1.33,
},
}
}[/lua]
If I comment out the antialias = true, the problem is fixed. It’s an issue with antialias, in the simulator. I also have Windows 7. [import]uid: 70391 topic_id: 14990 reply_id: 71315[/import]
Wow, @green.castle, you figured this one out. It sounds like Windows specific issue. I use Mac, so I could not reproduce it. It was really puzzling to me. Since it sounds like this still happens with the latest build, you may want to report this as bug (scroll up to the top of this screen and click on Report a Bug link.) Also, in your bug report, it might be a good idea to post the URL of your thread in your bug report (you can get it by clicking on the post #), like:
http://developer.anscamobile.com/forum/2011/09/11/cant-draw-circle#comment-71239
I think it’s best for Ansca staff to be aware of issues like this before they release their new stable build (and from what I understand, it’s scheduled to be released very soon.)
Cheers,
Naomi [import]uid: 67217 topic_id: 14990 reply_id: 71321[/import]
Your understanding might be correct 
Don’t worry, I also had created a case for this and I passed on the information.
The easiest workaround is to comment out antialias when you are testing, and put it back in before you build. [import]uid: 70391 topic_id: 14990 reply_id: 71323[/import]
Matt, could you post your bug/case # here please?
Peach
[import]uid: 52491 topic_id: 14990 reply_id: 71343[/import]
Sure, Madam Peach. It is Case 10229. Submitted on 3 Dec 2011 - 04:31. [import]uid: 70391 topic_id: 14990 reply_id: 71360[/import]
Thanks very much Matt, I’ll pass this along to the team.
Peach
[import]uid: 52491 topic_id: 14990 reply_id: 71367[/import]