## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 01:30

Rich2 on master

Minor. (compare)

• 00:58

Rich2 on master

Various. (compare)

• Oct 30 23:52

Rich2 on master

Various. (compare)

• Oct 30 20:58

Rich2 on master

PhiRectangle. (compare)

• Oct 30 19:05

Rich2 on master

Various. (compare)

• Oct 30 18:59

Rich2 on master

Minor. (compare)

• Oct 30 18:51

Rich2 on master

Removed rotate 90, 180 and 270 … (compare)

• Oct 30 13:09

Rich2 on master

Minor. (compare)

• Oct 30 10:24

Rich2 on master

More PhiRect. (compare)

• Oct 30 01:11

Rich2 on master

More PhiRectangle. (compare)

• Oct 30 00:40

Rich2 on master

More PhiRectangle. (compare)

• Oct 29 23:54

Rich2 on master

More PhiRectangle. (compare)

• Oct 29 23:39

Rich2 on master

More PhiRectangle. (compare)

• Oct 29 23:26

Rich2 on master

Minor. (compare)

• Oct 29 23:11

Rich2 on master

Minor. (compare)

• Oct 29 21:49

Rich2 on master

Minor. (compare)

• Oct 29 21:36

Rich2 on master

Minor. (compare)

• Oct 29 20:48

Rich2 on master

Regressions partly fixed on Squ… Fixed Regressions in Squares. (compare)

• Oct 29 20:25

Rich2 on master

Minor. (compare)

• Oct 29 20:16

Rich2 on master

Square not fully working after … (compare)

w0d
@w0d
Yes I think we need separate documentation for beginners. Can those old branches be killed?
@Rich2
lets talk
Rich
@Rich2
@w0d So I'm thinking we don't want too much stuff that is never or virtually never going to be used. So I don't think we care about quadrilaterals, pentagons, hexagons etc. Regular Hexagons, Octagons and of course squares and rectangles are certainly useful, but we rarely care about the general case of 4 sidedness. Most of the time we don't care about triangles, but I think they should be included, due to their prominence in 3d. I think Isosceles triangles and equilateral triangles should be included.
w0d
@w0d
@Rich2 are circles in or out
w0d
@w0d
@Rich2 querying the string returned by Vec2.toString()
eg (1 vv 2) and Vec2(1, 2) both return Vec2(1; 2)
i guess im proposing the current toString is renamed toRSON and a new toString returns either (1 vv 2) or Vec2(1, 2)
either that or i propose a new method alongside the existing toString called toCode?
w0d
@w0d

@Rich2 are circles in or out

ignore this - was due to circleFillOld removed whilst LessonC7 was in develeopment

w0d
@w0d
@Rich2 with regard to the public facing website & documentation being auto updated and living at github, i'm figuring these will need a separate repo unless we git hide the heavy assests?
w0d
@w0d
@Rich2 are you able to get debugging working in vscode?
Rich
@Rich2
@w0d Does the separate repo need to be on my account? I would definitely like to move from my personal account to an organisational account in the not to distant future. Then multiple repositories would make perfect sense. I was just trying to hold off till we had a one or more people involved to justify the extra administrative burden. I'll try and look at VsCode later today.
Rich
@Rich2
Feel free to delete the circle from C7 if you want as I've copied the code across to C8 now.
w0d
@w0d
@Rich2 not aware of restrictions on owners of repos as i understand things
i did consider setting a temp repo up for the website to refine the autobuilding etc but got sidetracked trying to hunt down issue #80
been trying to debug in intelij too - not tied to debugging in vscode
Rich
@Rich2
@w0d Wonderful news, contra to the information I received before, anisotropic scaling is not a Similar Transformation.
Rich
@Rich2
@w0d I'm wondering if all TransElems should have a BoundingRect property including LinePaths and CurvePaths.
Rich
@Rich2
@w0d I hope its OK, on reconsideration I reversed the parameter ordering for Circles, as there did seem to be quite a few use cases for origin centred Circles. This allows three constructor signatures.
Rich
@Rich2
I'm thinking Angles should be stored as Degrees not Radians.
Rich
@Rich2
@w0d So I raised the idea a while back that Fill, Draw, Text and other capabilities should be members of a Graphic primitive rather than defined through class inheritance. I'm feeling that more strongly now. Not all platforms need to implement all capabilities. A printer can't display pop-up text. But that also not all programmes / applications / GUIs need to display the same capabilities even on the same platform. In this way they can be extensible.
Rich
@Rich2
@/all Graphic module has been renamed Graphics.
mghildiy
@mghildiy
I am a Java programmer, and a Scala beginner
Would like to contribute to openstrat
Rich
@Rich2
@mghildiy Hi there. It would be great to have someone with a Java background / perspective involved. Are you able to build the project OK and run the different examples / mini-apps? What platform do you work on Windows / Linux / Apple?
w0d
@w0d
@Rich2 hi, sorry not been around much but been having problems with my tablet which i use for my internet connection - hope to resove it soon
w0d
@w0d
@Rich hi
canv.polyFill(Rect.fromBL(size-1, size-1, loc), Black) canv.circleFill(Circle(size/8, loc+((size/4) vv (size/4))), color)
any chance you could rewrite these lines to the developing api
cheers
Rich
@Rich2
@w0d Could you check that the loop in ReactorGui still works as before.
mghildiy
@mghildiy
@Rich2 , I am working on Windows 10.
w0d
@w0d
@mghildiy Hi there, if we can help in anyway feel free to ask here
mghildiy
@mghildiy
I ran sbt at project root, got this error
[error] server failed to start on local:sbt-server-ae79988dabf357ab37d4. java.io.IOException: Could not create lock for \.\pipe\sbt-server-ae79988dabf357ab37d4_lock, error 5
but Dev/reStart launched the program
mghildiy
@mghildiy
which part of code can I dive into directly?
Rich
@Rich2

@mghildiy I would suggest working on the examples in the Graphics/srcExs folder.

I've just updated the website documentation page. So copy the DevSettings.rson file from the Dev/Misc folder to the Dev/User folder. You will have to create the Dev/User folder yourself as its under git ignore. Then you can change the app / example that runs for:

~Dev/reStart

If you change the appStr in Dev/User/DevSettings.rson and save it then sbt will automatically relaunch the new specified example /app in the same way that sbt rebuilds when you make and save code changes.

Rich
@Rich2
@w0d I'm definitely swinging back to thinking the default method for specifying a circle should be by diameter not by radius.
Rich
@Rich2
Docs at richstrat.com have been updated.
agarwalBinay18
@agarwalBinay18
hi
How can I run project in Windows 10?
Rich
@Rich2

@agarwalBinay18 So you need to have a JDK version of Java installed. Jdk 11 is ideal but later versions should all work. Then install sbt. Clone the project to a location of your choice and then shift into the openstrat folder and run sbt. Then from the Sbt command prompt run:

~ Dev/reStart

That will compile and open a graphical application. If you make any changes to the source files it will recompile and run with your changes.

w0d
@w0d
@agarwalBinay18 let us know if you have any problems with the steps outlined above
agarwalBinay18
@agarwalBinay18
unable to write any command
Rich
@Rich2
@agarwalBinay18 I've run into the same weird problem on Windows 10. Sbt ran as normal using power-shell and the command prompt. You could run the commands in Sbt as normal, but when I ran Sbt in Git bash I got exactly the same problem as you. So as a temporary measure could try running Sbt form power-shell or the command prompt. I will try and investigate this problem further.
agarwalBinay18
@agarwalBinay18
I am getting this after compiling and running
Rich
@Rich2
@agarwalBinay18 OK so if you create a folder called User inside the Dev folder and then copy the DevSettings.rson file from Dev/Misc to Dev/User. Tou can then change the appstr at the top of the Dev/User/DevSettings.rson file it will change the app or example that Sbt runs.
The purpose of this is that the Dev/User folder is ignored by git, allowing each developer to change the app/example they are working on as many times as they want without worrying about the change getting staged, committed and pushed back to the upstream repository.
Rich
@Rich2
@agarwalBinay18 So I'm fairly certain I know what the problem is. The simple answer is that the project won't run using git bash but will work from the command prompt and Power Shell. My preferred development environment is IntelliJ IDEA. This is a powerful IDE for working in Scala and popular across the Scala community, however it does use a lot of system resources, so it may not be the ideal solution for working on lower powered devices. It works for openstrat under Windows. You can also use common editors with the Scala metals plugin. I've just tested this using the Visual Studio Code editor on Windows 10 and it works. But Scala-Metals should also work with Atom, Vim, Sublime, EMacs and even Eclipse.
Rich
@Rich2
@agarwalBinay18 So ignore this explanation, if it confuses. Myself and @w0d both work mainly in Linux, however I had used gitbash successfully on Windows 7 and Windows 10 with Openstrat previously. Openstrat can be currently output to JavaFx and to WebCanvas through Scala.js, although we're starting to add SVG as an output target. However a while back we moved from JDK 8 to JDK 11+. JavaFx was bundled as part of the Oracle JDK with Java 8. However from Java 11 it became a library dependency you can see it called in on line 70 of the openstrat.sbt file in the root folder of openstrat. This is a platform specific library dependency. So the library that is called in is different on Windows from Linux. I strongly expect that this is causing the problem when trying to run the project from Git bash.
mghildiy
@mghildiy
How to build the project?
following this
mghildiy
@mghildiy
ignore above
so what should be appStr value for running Graphics/srcExs examples
got it