Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » DawidG
  • » Profile

Posts

Posts

Hello DanField

Your presumption is good - what you can do, is use LibraryBrowser. I typed "color", and found that class in some library.
Working code is:

block TestColor
    constant Modelica.Mechanics.MultiBody.Types.Color blue = {0,0,255};
end TestColor;

Hope that solves your problem.

  • Index
  • » Users
  • » DawidG
  • » Profile
You are here: