mirror of
https://github.com/Noratrieb/redox.git
synced 2026-01-14 16:25:04 +01:00
mouse
This commit is contained in:
parent
add4166030
commit
78853473ff
5 changed files with 122 additions and 16 deletions
|
|
@ -60,9 +60,14 @@ export default class Particle implements SimObject {
|
|||
public get position() {
|
||||
return this._position;
|
||||
}
|
||||
|
||||
|
||||
set position(value: Vector) {
|
||||
this._position = value;
|
||||
}
|
||||
}
|
||||
|
||||
function colorFromCharge(charge: number): FillStyle {
|
||||
export function colorFromCharge(charge: number): FillStyle {
|
||||
if (charge === 0) {
|
||||
return "black";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue