-
Notifications
You must be signed in to change notification settings - Fork 0
Innocent #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Innocent #52
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
0064ac3
fix: corrected a spelling error in the readme file
Yahm3 26bd5a7
📝 CodeRabbit Chat: Add pytest test suite for README validation with s…
coderabbitai[bot] 18befd2
CanvasFrame: Remove the extra threads
hexaredecimal cb7831d
Piccode: register native functions at the start
hexaredecimal fa11004
nativemods: The start of piccode specific modules
hexaredecimal 1c90902
piccode: The piccode stdlib. This contains functions and modules for …
hexaredecimal cae2694
pom.xml: Build using master branch
hexaredecimal b172305
nativemods: Use the correct rendering function: drawLine instead of d…
hexaredecimal 04132f6
nativemods: Do not set the color to black when drawing
hexaredecimal ad7e0ee
NewProjectDialog: Adds the new project dialog
hexaredecimal 3b60e9a
examples: Adds the 1st example
hexaredecimal 76f966e
piccode: Add documentation to the stdlib
hexaredecimal 010a831
editor: Use reference types for working with graphic contexts
hexaredecimal 27f95b4
piccode: Fixes the API to make it clear
hexaredecimal 6109dfb
examples: Updates the example to reflect the lates changes
hexaredecimal 38de586
piccode: Fix mistakes
hexaredecimal b9795d3
Piccode: Register the gfx module
hexaredecimal fcbeba1
editor: Fixed mistakes
hexaredecimal 122def7
editor: Fix the rampant memory usage that was caused by compiling per…
hexaredecimal afbd1f2
pom.xml: Add JHLabs filters
hexaredecimal f8f7206
piccode: Adds more functions to the modules
hexaredecimal f7bf58d
events: Clear the output window on each compile
hexaredecimal 1aa9059
Piccode: Register the new modules
hexaredecimal 742a79f
Update piccode/image/image.pics
hexaredecimal c5fb739
.gitignore: Ignore jar files too
hexaredecimal 4aa99b9
theme: A subscriber API for thmeming compoments
hexaredecimal 91690fe
editor: Somehow I lost the code for switching theme on the code editor
hexaredecimal de70d00
CanvasFrame: I also lost code for setting colors on the canvas panel
hexaredecimal 5d047c8
editor: Re implements more features
hexaredecimal d433e57
pom: Update the pom file
hexaredecimal 741ae38
Create dependabot.yml
hexaredecimal eef791d
Update .github/dependabot.yml
hexaredecimal 6126ada
build(deps): bump org.apache.maven.plugins:maven-jar-plugin
dependabot[bot] 94d2c33
build(deps): bump org.apache.maven.plugins:maven-enforcer-plugin
dependabot[bot] 70efef5
build(deps): bump org.junit:junit-bom from 5.12.2 to 5.13.4
dependabot[bot] e96dfd5
build(deps): bump org.apache.maven.plugins:maven-assembly-plugin
dependabot[bot] 96acc34
build(deps): bump org.bidib.jbidib.com.vldocking:vldocking
dependabot[bot] 361798e
build(deps): bump org.antlr:antlr4-runtime from 4.9.3 to 4.13.2
dependabot[bot] bb50ed8
build(deps): bump org.graalvm.buildtools:native-maven-plugin
dependabot[bot] 1651a50
build(deps): bump com.formdev:flatlaf from 3.6 to 3.6.1
dependabot[bot] 9334fb1
editor: Add a bunch of dialogs
hexaredecimal 5428cb7
build(deps): bump org.graalvm.buildtools:native-maven-plugin
dependabot[bot] fe492e0
build(deps): bump org.junit:junit-bom from 5.13.4 to 6.0.0
dependabot[bot] 292ad28
build(deps): bump org.apache.maven.plugins:maven-enforcer-plugin
dependabot[bot] db567a3
About: Changed the name of the organization
hexaredecimal 48e6756
Remove the conflict
Yahm3 96f389d
README: Fix conflicts in readme
hexaredecimal f99bbb7
feat: Use the system Object to get the current working directory
Yahm3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "maven" # See documentation for possible values | ||
| directory: "/" # Location of package manifests | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| target/ | ||
| .mvn | ||
| mvnw* | ||
| docs/.obsidian | ||
| docs/.obsidian | ||
| *.jar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
|
|
||
| IO :: import std.io | ||
| Virtual :: import std.virtual | ||
| Render :: import piccode.render | ||
| Pen :: import piccode.pen | ||
|
|
||
| drawStar :: (ctx, padding=0) = | ||
| ctx | ||
| |> Pen::drawLine(50+padding, 50+padding, 150-padding, 150-padding) | ||
| |> Pen::drawLine(150-padding, 50+padding, 50+padding, 150-padding) | ||
| |> Pen::drawLine(50+padding, 100, 150-padding, 100) | ||
| |> Pen::drawLine(100, 50+padding, 100, 150-padding) | ||
|
|
||
| drawRect :: (ctx, x, y, w, h) = | ||
| ctx | ||
| |> Pen::drawLine(x, y, x + w, y) | ||
| |> Pen::drawLine(x, y + h, x + w, y + h) | ||
| |> Pen::drawLine(x, y, x, y + w) | ||
| |> Pen::drawLine(x + w, y, x + w, y + h) | ||
|
|
||
|
Comment on lines
+14
to
+20
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug in drawRect: using The left vertical edge is using the width as its vertical extent: This should use - |> Pen::drawLine(x, y, x, y + w)
+ |> Pen::drawLine(x, y, x, y + h)🤖 Prompt for AI Agents |
||
| drawDepth :: (ctx) = | ||
| ctx | ||
| |> Pen::drawLine(150, 50, 200, 70) | ||
| |> Pen::drawLine(150, 150, 200, 170) | ||
| |> Pen::drawLine(50, 150, 100, 170) | ||
|
|
||
| drawBackLines :: (ctx) = | ||
| ctx | ||
| |> Pen::drawLine(100, 170, 200, 170) | ||
| |> Pen::drawLine(200, 70, 200, 170) | ||
|
|
||
| main :: () = | ||
| let | ||
| ctx := Render::getContext() | ||
| in | ||
| ctx | ||
| |> drawRect(50, 50, 100, 100) | ||
| |> drawDepth | ||
| |> drawBackLines | ||
| |> drawStar(10) | ||
|
|
||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
|
|
||
| // Module: Context | ||
| // Contains functions for creating contexts | ||
| Context :: module { | ||
|
|
||
| // Function: fromRect | ||
| // Creates a new context based on the one provided | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // x - (Number) The x position | ||
| // y - (Number) The y position | ||
| // w - (Number) The width | ||
| // h - (Number) The height | ||
| // | ||
| // Returns: | ||
| // - (Reference) A new graphics sub-context derived from the given context. | ||
| fromRect :: (ctx, x, y, w, h) = pic_nat_gfx_from_rect(ctx, x, y, w, h) | ||
|
|
||
| // Function: from | ||
| // Creates a new context based on the one provided | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // | ||
| // Returns: | ||
| // - (Reference) A new graphics context derived from the given context. | ||
| from :: (ctx) = pic_nat_gfx_from(ctx) | ||
|
|
||
| // Function: drop | ||
| // Frees the given context | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // | ||
| // Returns: | ||
| // - (Unit) Nothing | ||
| drop :: (ctx) = pic_nat_gfx_drop(ctx) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
|
|
||
| Filter :: module { | ||
| apply :: (filter, image) = pic_nat_filter_apply(filter, image) | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
|
|
||
|
|
||
| BrushMetal :: module { | ||
| new :: () = pic_nat_brush_metal_new() | ||
| radius :: (filter, radius) = pic_nat_brush_metal_set_rad(filter, radius) | ||
| amount :: (filter, radius) = pic_nat_brush_metal_set_amount(filter, radius) | ||
| shine :: (filter, radius) = pic_nat_brush_metal_set_shine(filter, radius) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
|
|
||
| Image :: module { | ||
| new :: (w, h) = pic_nat_image_new(w, h) | ||
| newWithType :: (w, h, type) = pic_nat_image_new_typed(w, h, type) | ||
| getContext :: (img) = pic_nat_image_get_context(img) | ||
| fromPath :: (path) = pic_nat_image_new_from_path(path) | ||
|
|
||
| resize :: (img, w, h) = pic_nat_image_resize(img, w, h) | ||
|
|
||
| Type :: module { | ||
| RGB := 1 | ||
| ARGB := 2 | ||
| ARGB_PRE := 3 | ||
| BGR := 4 | ||
| } | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
|
|
||
| Pen :: module { | ||
|
|
||
| // Function: drawLine | ||
| // Draws a line inside the specified context, based on the provided coordinates | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // startx - (Number) The start x position | ||
| // starty - (Number) The start y position | ||
| // endx - (Number) The end x position | ||
| // endy - (Number) The end y position | ||
| // | ||
| // Returns: | ||
| // - (Reference) A modified context with the rendered element. | ||
| drawLine :: (ctx, startx, starty, endx, endy) = pic_nat_draw_line(ctx, startx, starty, endx, endy) | ||
|
|
||
| // Function: drawRect | ||
| // Draws a rect inside the specified context, based on the provided coordinates | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // x - (Number) The x position | ||
| // y - (Number) The y position | ||
| // w - (Number) The width | ||
| // h - (Number) The height | ||
| // | ||
| // Returns: | ||
| // - (Reference) A modified context with the rendered element. | ||
| drawRect :: (ctx, x, y, w, h) = pic_nat_draw_rect(ctx, x, y, w, h) | ||
|
|
||
| // Function: drawRoundRect | ||
| // Draws a rounded rectangle inside the specified context, based on the provided coordinates | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // x - (Number) The x position | ||
| // y - (Number) The y position | ||
| // w - (Number) The width | ||
| // h - (Number) The height | ||
| // aw - (Number) The arc width | ||
| // ah - (Number) The arc height | ||
| // | ||
| // Returns: | ||
| // - (Reference) A modified context with the rendered element. | ||
| drawRoundRect :: (ctx, x, y, w, h, aw, ah) = pic_nat_draw_round_rect(ctx, x, y, w, h, aw, ah) | ||
|
|
||
| // Function: drawOval | ||
| // Draws a rect inside the specified context, based on the provided coordinates | ||
| // | ||
| // Parameters: | ||
| // ctx - (Reference) The graphic context | ||
| // x - (Number) The x position | ||
| // y - (Number) The y position | ||
| // w - (Number) The width | ||
| // h - (Number) The height | ||
| // | ||
| // Returns: | ||
| // - (Reference) A modified context with the rendered element. | ||
| drawOval :: (ctx, x, y, w, h) = pic_nat_draw_oval(ctx, x, y, w, h) | ||
|
|
||
| drawImage :: (ctx, image, x, y) = pic_nat_draw_image(ctx, image, x, y) | ||
|
|
||
| drawText :: (ctx, text, x, y) = pic_nat_draw_text(ctx, text, x, y) | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| // Module: Render | ||
| // Functions for working with the editor render context | ||
| Render :: module { | ||
| // Function: getContext | ||
| // returns the render context (A handle to the Render window on the screen) | ||
| // | ||
| // Parameters: | ||
| // None | ||
| // | ||
| // Returns: | ||
| // - (Reference) a handler to the Graphics2D. | ||
| getContext :: () = pic_nat_get_gfx() | ||
|
|
||
| } | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unresolved merge conflicts and duplicated content in README
The README currently contains unresolved merge‑conflict markers (
<<<<<<<,=======,>>>>>>>), duplicated/contradictory sections (e.g., multiple “About”, “Building”, and “Test your build” variants), and inconsistent naming (“Picasso code”, “Piccasso code”, “Piccassocode”,_glimr_vs*PiccodeScript*).This makes the documentation hard to read and will likely break any automated README validation or linting you have.
Please fully resolve the conflicts by:
🧰 Tools
🪛 LanguageTool
[style] ~89-~89: You have already used ‘tries to’ in nearby sentences. Consider using one of the replacements to let your writing stand out.
Context: ...CAD](https://openscad.org/) program and tries to mimic its functionality ======= Picasso...
(REP_TRY)
[style] ~91-~91: You have already used ‘tries to’ in nearby sentences. Consider using one of the replacements to let your writing stand out.
Context: ...CAD](https://openscad.org/) program and tries to mimic its functionality >>>>>>> 455b066...
(REP_TRY)
🪛 markdownlint-cli2 (0.18.1)
17-17: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
24-24: Emphasis style
Expected: asterisk; Actual: underscore
(MD049, emphasis-style)
24-24: Emphasis style
Expected: asterisk; Actual: underscore
(MD049, emphasis-style)
28-28: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
29-29: Emphasis style
Expected: asterisk; Actual: underscore
(MD049, emphasis-style)
29-29: Emphasis style
Expected: asterisk; Actual: underscore
(MD049, emphasis-style)
66-66: Multiple headings with the same content
(MD024, no-duplicate-heading)
73-73: Multiple headings with the same content
(MD024, no-duplicate-heading)
80-80: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
89-89: Heading style
Expected: atx; Actual: setext
(MD003, heading-style)
🤖 Prompt for AI Agents